File | Settings | Editor | General | Appearance | Show line numbers 체크

출처 : http://blog.naver.com/nateen7248/220478171833