IntelliJ IDEA 2017.3 Help

Navigating Between Methods and Tags

Since your source code can contain numerous methods, it is convenient to navigate to the beginning of the next or previous method. In the Web contents, this feature enables navigating between tags.

To navigate to the next or previous method or tag

For JavaScript code inside HTML files this behavior depends on the caret location. If the caret rests inside a JavaScript block, this means of navigation enables jumping between JavaScript functions. If the caret rests on a <script> tag, then navigation is performed between the tags.

To improve the visibility of your source code by having a line added automatically between adjacent methods, choose the Show Method Separators option in the Appearance page of the editor settings.

  • On the main menu, choose Navigate | Next Method / Previous Method respectively.
  • Use Alt+Up/Alt+Down keyboard shortcuts.
Last modified: 6 March 2018

See Also