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, but I can't find anything about it.
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.
tools->options->editor->format
have no affect, check the settings under file->project properties->formatting
. You may have Use project specific options
selected –
Klusek 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.
© 2022 - 2024 — McMap. All rights reserved.