Bug 333777 - Editor removes tab when typing opening brace {
Summary: Editor removes tab when typing opening brace {
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P2 trivial (vote)
Target Milestone: ---   Edit
Assignee: PHP UI CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-07 13:01 EST by Daryl CLA
Modified: 2020-05-14 10:15 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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