Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

android studio / intellij idea goto line number

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 to scroll each time I need a specific line number.

like image 737
Katedral Pillon Avatar asked Jun 03 '15 19:06

Katedral Pillon


People also ask

How do you jump to line numbers in Pycharm?

In the editor, press Ctrl+G . In the Go to Line/Column dialog, specify a line or column number, or both, separating them with : and click OK.

How do I navigate code in IntelliJ?

To navigate backwards, press Ctrl+Alt+Left . To navigate forward, press Ctrl+Alt+Right . To navigate to the last edited location, press Ctrl+Shift+Backspace . To find the current caret location in the editor, press Ctrl+M .

How do I view lines in IntelliJ?

From the main menu, select Edit | Find | Find in Files Ctrl+Shift+F . In the search field, type your search string. Alternatively, in the editor, highlight the string you want to find and press Ctrl+Shift+F . IntelliJ IDEA places the highlighted string into the search field.

How do you go to a specific line in Webstorm?

You can jump to a specific line in a file right from the Go to file popup (Cmd+Shift+O on macOS or Ctrl+Shift+N on Windows and Linux) – just add : after the file name.


1 Answers

The shortcut to go to a specific line and/or column number is: CTRLG

Android Studio Go to Line dialog box

Examples:

  1. Go to line 6
    CtrlG6Enter

  2. Go to line 6 and column 8
    CtrlG6:8Enter

  3. Go to column 4 on the current line
    CtrlG:4Enter


Shortcut References:

  • AltHK = H̲elp -> Default K̲eymap Reference
  • IntelliJIDEA_ReferenceCard.pdf
  • Android Studio Shortcuts You Need the Most
like image 103
jesterjunk Avatar answered Sep 23 '22 03:09

jesterjunk