editing the NetBeans source formatting standard

后端 未结 3 1086
野的像风
野的像风 2020-12-16 11:30

Is there any way of changing the standard by which NetBeans automatically formats the code when doing \"Source->Format\"? I seem to remember seeing this option somewhere, bu

相关标签:
3条回答
  • 2020-12-16 12:00

    You can change a very limited number of settings related to formatting.
    open up netbeans IDE
    Go to tools->options
    click on Editor button on top left of the options dialog box
    click on the formatting tab
    select PHP from the language select box
    then you would be able to see the required settings that can be changed.



    Latest version 7.3 will solve most of your needs.

    0 讨论(0)
  • 2020-12-16 12:01

    This might help.

    Tools->Options->Editor->Formatting

    0 讨论(0)
  • 2020-12-16 12:18

    The formatting preferences are at two 'levels' in NetBeans 6.9 Beta and NetBeans 6.8. There is a global setting, which is available via the Options item of the Tools menu (Preferences item of the NetBeans menu on Mac OS X). This opens a Options dialog. Select the Formatting tab of the Editor 'category', and then change the language to PHP.

    alt text http://www.freeimagehosting.net/uploads/587cd38396.png

    You can also specify formatting on a per-project basis. To do that, select your PHP project in the Project explorer and the select the Project Properties item from the File menu. When the Properties dialog opens, select the Formatting category from the navigation list on the left side of the dialog.

    alt text http://www.freeimagehosting.net/uploads/47904df6e4.png

    Note: In 6.8, there are only two formatting categories that you can change: Tabs and Indents; Braces. It looks like the "preview" area is not rendered correctly. NetBeans 6.9 Beta extends the number of formatting categories (Tabs and Indents, Alignment, Braces, Blank Lines, Spaces, Wrapping). The issues with the preview area appear to be resolved, too.

    0 讨论(0)
提交回复
热议问题