Netbeans: Tab spaces in Grails GSP
When using the netbeans grails plugin most source files follow the IDEs tab rules in the options (e.g. Java and Groovy files are 4 spaces) but when editing a Grails GSP (essentially HTML) the tabs default to 2 spaces and not the 4 spaces set in the options. This is becoming slightly annoying since I have to backtrack and retab som开发者_如何学Pythone areas of the source because netbeans insists on making it 2 spaces indentation when completing a block.
Is there a way to force the tabs to 4 spaces for GSP files in netbeans?
Thanks
If you using nb 6.9+ i believe there is a project code formatting tool (right click on the project and go to properties and then formatting). But I don't think this will help you since there is a bug with formatting GSP in netbeans....(see). Just don't auto format your code using the IDE for now (that's what i'm forced to do).
精彩评论