labythan
2010-08-11 14:46:54 UTC
Netbeans is perfect - EXCEPT, it has its own idea of how to auto indent my code. For example, I am trying to write:
function foo($bar)
{
[indent]stuff();
}
My muscle memory writes:
function foo($bar)[return]{[return]}[up][enter][tab]stuff();
But when I do this netbeans thinks that it should auto indent the second curly brace and I end up with:
function foo($bar)
{
[tab]}
So at this point I press [left][backspace] and clear the tab to correct. Then press enter to enter one line. What I expect is:
function foo($bar)
{
[cursor is here]
}
But what I get is:
function foo($bar)
{
[empty line]
[indent][cursor is here]
}
Where does the second line come from? Why is my cursor indented?
For sweet mercy why can't netbeans just work like a normal text editor like vi or textmate or visual studio? Why does it have to press keys for me to incorrectly format my code?
On a side note, does anyone know a PHP IDE that can do xdebug debugging and watches like netbeans, code completion, but just put on the screen what I type in?
Thanks!
function foo($bar)
{
[indent]stuff();
}
My muscle memory writes:
function foo($bar)[return]{[return]}[up][enter][tab]stuff();
But when I do this netbeans thinks that it should auto indent the second curly brace and I end up with:
function foo($bar)
{
[tab]}
So at this point I press [left][backspace] and clear the tab to correct. Then press enter to enter one line. What I expect is:
function foo($bar)
{
[cursor is here]
}
But what I get is:
function foo($bar)
{
[empty line]
[indent][cursor is here]
}
Where does the second line come from? Why is my cursor indented?
For sweet mercy why can't netbeans just work like a normal text editor like vi or textmate or visual studio? Why does it have to press keys for me to incorrectly format my code?
On a side note, does anyone know a PHP IDE that can do xdebug debugging and watches like netbeans, code completion, but just put on the screen what I type in?
Thanks!