Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » Editor removes tabs before brace
Editor removes tabs before brace [message #647392] Wed, 05 January 2011 18:14 Go to next message
Daryl  is currently offline Daryl
Messages: 2
Registered: January 2011
Junior Member
Using PDT to edit PHP files:

When I enter a new line, then tab, then enter an open brace, the editor removes the tab, and pushes the brace back to line up with the previous line.

I want:

foreach($V as $K)
     {
     echo $K;
     }


The editor insists on making it like this:

foreach($V as $K)
{
     echo $K;
}

Every time I enter a brace, I have to go back and push it out again to where I want it.

I've gone through all the editor settings, and searched online, but can't find any way to change this behavior. Don't tell me I'm doing it wrong -- I've been programming like this for over 20 years and I'm not about to break this habit!

Can anyone help?
Re: Editor removes tabs before brace [message #647568 is a reply to message #647392] Fri, 07 January 2011 00:44 Go to previous messageGo to next message
Toshihiro Izumi is currently offline Toshihiro Izumi
Messages: 342
Registered: July 2009
Location: Japan
Senior Member
Could you please submit a bug report as "enhancement" to bugzilla?
It is impossible to disable auto-edit feature.

BTW, you can build your own pdt since it's an open source.
Comment out 1 statement, that's all to disable auto-edit against '{'.
Re: Editor removes tabs before brace [message #647682 is a reply to message #647568] Fri, 07 January 2011 13:09 Go to previous message
Daryl  is currently offline Daryl
Messages: 2
Registered: January 2011
Junior Member
Done, thanks. I entered a bug report.
Previous Topic:Setting.
Next Topic:Which PHP IDE is the best in your Experience including Eclipse?
Goto Forum:
  


Current Time: Tue Jul 22 11:45:37 EDT 2014

Powered by FUDForum. Page generated in 0.07316 seconds