开发者

Netbeans: Tab spaces in Grails GSP

开发者 https://www.devze.com 2023-03-16 17:14 出处:网络
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 def

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).

0

精彩评论

暂无评论...
验证码 换一张
取 消