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 grailsGotoViewFromActionIconin the left gutter:

    grailsGotoViewFromAction



    The corresponding <name>.gsp file opens in the editor.
  • In a view file <name>.gsp: click the Controller button on the scaffolding toolbar:

    grailsGotoActionFromView

    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 ⌘B, ⌘Button1 Click, Button2 Click, ⌘B, ⌘Button1 Click or Button2 Click⌘B, ⌘Button1 Click, Button2 Click, ⌘B, ⌘Button1 Click or Button2 ClickF3, ⌃Button1 Click, F3 or ⌃Button1 ClickF12, ⇧ F2, ^ B, ^ Button1 Click, Button2 Click, F12, ⇧F2, ⌃B, ⌃Button1 Click, Button2 Click, F12, ⇧F2, ⌃B, ⌃Button1 Click or Button2 Click^ ⌥ G, Escape, Period, ⌥ Period, ^ Button1 Click, ⌃⌥G, ⎋, ., ⌥., ⌃Button1 Click, ⌃⌥G, ⎋, ., ⌥. or ⌃Button1 Click
  • Keeping ^ pressed, click the template name:

    grailsGotoViewFromRender

See Also

Language and Framework-Specific Guidelines: