This feature is supported in Ultimate edition only.
IntelliJ IDEA provides intention actions to create views and actions "from usage".
- In a Grails
*.gsppage, place the caret at a view that refers to a non-existent action. - Press ⌥⏎⌥⏎⌘1⌥ Enter⌥ Enter, and choose from the suggestion list. The action is created in the controller, with the caret at the insertion point.
- Type the meaningful action code.
- In a Grails controller, place the caret at an action that refers to a non-existent view.
- Press ⌥⏎⌥⏎⌘1⌥ Enter⌥ Enter, and choose from the suggestion list.

A
.gspfile with the corresponding name is created under theviewsdirectory of the Grails application.
Configure code style of .gsp pages here.