Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

editing the NetBeans source formatting standard

Tags:

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.

like image 804
Victor Stanciu Avatar asked Apr 26 '10 09:04

Victor Stanciu


People also ask

How to format code in NetBeans?

To format all the code in NetBeans, press Alt + Shift + F. If you want to indent lines, select the lines and press Alt + Shift + right arrow key, and to unindent, press Alt + Shift + left arrow key.

How to format php code in NetBeans?

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. You can also specify formatting on a per-project basis.

How to open Javadoc in NetBeans?

From the menu bar, select Window > IDE Tools > Javadoc Documentation to open the Javadoc window, in which the documentation is refreshed automatically for the location of your cursor.


1 Answers

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.

like image 198
Gaurav Sharma Avatar answered Oct 10 '22 01:10

Gaurav Sharma