IntelliJ IDEA 2017.1 Help

Navigating Between Actions and Views

This feature is supported in the Ultimate edition only.

IntelliJ IDEA suggests convenient means of navigation within Grails applications. The following cases are possible:

To navigate between an action and the corresponding view

  • In a controller, with the caret within an action: Click the icon /help/img/idea/2017.1/grailsGotoViewFromActionIcon.pngin the left gutter:
    /help/img/idea/2017.1/grailsGotoViewFromAction.png

    The corresponding <name>.gsp file opens in the editor.
  • In a view file <name>.gsp: click the Controller button on the scaffolding toolbar:
    /help/img/idea/2017.1/grailsGotoActionFromView.png
    The corresponding controller opens in the editor, with the caret resting before the action name.

To navigate from Grails render or redirect methods, do one of the following

  • With the caret at the template name, press Ctrl+B
  • Keeping Ctrl pressed, click the template name:
    /help/img/idea/2017.1/grailsGotoViewFromRender.png

See Also

Language and Framework-Specific Guidelines:

Last modified: 18 July 2017