android studio / intellij idea goto line number

后端 未结 5 1358
广开言路
广开言路 2021-02-03 21:59

In Eclipse, if I type cmd+L, it opens a dialog for me to enter a line number and it takes me there in the code. How do I do the same thing in Android Studio? Instead of having t

5条回答
  •  轮回少年
    2021-02-03 22:36

    • If you are in the specific file,

    You can use Ctrl + G. And insert the line You wanted. If you want to go to a specific column of the lineNo you can insert lineNo:columnNo.

    • If you are in some file and you want to navigate into some line of a some other file,

    You can simply use default navigation shortcut Ctrl + Shift + N, and insert fileName : lineNo.

    NOTE: You don't need to insert the whole name of the file, some text that enables intellij to uniquely identify your file would be good enough. Your input text might turn into red color. But it works. :)

提交回复
热议问题