Formatting in NetBeans: CSS specific

北战南征 提交于 2019-12-11 02:46:55

问题


I would like to use spaces for indentation for most code, but use tabs for indentation in CSS. In Visual Studio and Notepad++, you can configure this for all languages. But in NetBeans (setup for PHP), I can only select "All languages" or "PHP".

Is there a way to make other languages have specific formatting settings (specifically CSS)?


回答1:


Depending on the IDE modules that you have, you will see PHP, Java or All Languages. But there is no way to change formatting styles for CSS-only in Netbeans. This feature has been asked a few times already in the Netbeans users list, but has not been implemented yet.




回答2:


Since there is no available setting for css formatting or xml, jsp you can set the 'Language' to 'All Language'. It will apply on all the languages that has NetBeans support. If the case is you have other formatting setting specific on Javascript or any language that on 'Language' menu, you can override it.



来源:https://stackoverflow.com/questions/7356785/formatting-in-netbeans-css-specific

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!