Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Netbeans: Auto Format - Prevent Space Formatting on Variable Assignment

Tags:

ide

netbeans

I prefer formatting assignments like this:

$foo          = $bar;
$long_foo     = $bar;

instead of this:

$foo = $bar;
$long_foo = $bar;

However the latter is being used by Netbeans when using auto format. Anyone knows how to fix that?

like image 400
IMB Avatar asked Oct 17 '11 11:10

IMB


1 Answers

It's been 3 years since this question has been posted but I think it is very useful, so I should answer this question. I've found one website that it seems right to your question.

In Alignment category there are new properties for Group Multiline Alignment - Assignment and Array Initializer.

Formatting Options

like image 94
lyhong Avatar answered Sep 22 '22 15:09

lyhong