android studio / intellij idea goto line number

后端 未结 5 1295
广开言路
广开言路 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:20

    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

提交回复
热议问题