I use Netbeans 8.2 for PHP coding for a long while. Now I set it up again on a new laptop and I'm again stuck with disabling the smart-indentation. I can't find any option within Netbeans nor some hint on the web.
My goal: I need the auto-indentation (insert tabs after newline), but not the "smart" indentation, that sometimes eats tabs at the beginning of the line.
Example:
I type the following in the editor (the pipe | is the caret):
<div>
<?php if(true) { ?>
<div|
<?php } ?>
</div>
When I now type the closing >
, the smart indentation do a back indent on the line:
<div>
<?php if(true) { ?>
<div>|
<?php } ?>
</div>
And that's the annoying behaviour I try to disable.