Reputation: 21
I want to know how can I configure my netbeans ide to format my code in my specific need. I need all my assignment in same line to easily distinguish it. for eg:
$a = 1;
$b = 1;
$c = 1;
$a++;
some code
$d = 1;
Upvotes: 1
Views: 532
Reputation: 17383
Based on your sample code, I'm assuming that you want to do this for PHP. If so, then you can do it as follows:
A code sample will be displayed in the Preview window on the right side of the screen which includes some variable assignments near the end of the code:
Under Group Multiline Alignment check the Assignment box. Note that the assignment operators (=
) in the code preview are now aligned:
Notes:
Upvotes: 2
Reputation: 6045
Formatting in NetBeans can be configured under "Tools / Options / Editor / Formatting
", but I don't think that you can configure NetBeans to use your desired format.
Upvotes: 0