Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 333777

Summary: Editor removes tab when typing opening brace {
Product: z_Archived Reporter: Daryl <crap>
Component: PDTAssignee: PHP UI <php.ui-inbox>
Status: NEW --- QA Contact:
Severity: trivial    
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Daryl CLA 2011-01-07 13:01:53 EST
Build Identifier: 20100917-0705

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 an open brace, I have to go back and push it out again to where I want it.

This kind of automatic action should be something that can be disabled.

Reproducible: Always

Steps to Reproduce:
1.  Create a line of text in PHP editor
2.  Press Enter key to move to a new line
3.  Press Tab key to indent
4.  Press "{" key to insert a brace