In IntelliJ IDEA:
- Under File > Settings > Editor > Code style
- Press 'Manage' button
- Import
GoogleStyle+Spock.xml
file - Select 'Copy to project' to make it the project default
Also installing this IntelliJ IDEA plugin is recommended:
Spock Enhancements Plugin
- Under File > Settings > Plugins
- Press 'Browse repositories...' button
- Search for 'spock'
- Press 'Install' button