Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 347495 - [qf] Create local variable quick fix produces invalid indentation
Summary: [qf] Create local variable quick fix produces invalid indentation
Status: CLOSED DUPLICATE of bug 333937
Alias: None
Product: CDT
Classification: Tools
Component: cdt-editor (show other bugs)
Version: 8.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Anton Leherbauer CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-27 14:10 EDT by Sergey Prigogin CLA
Modified: 2011-06-15 22:30 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Prigogin CLA 2011-05-27 14:10:36 EDT
Set indentation size to 2. In the following code position the cursor on x and select Create local variable from the quick fix menu.

void test() {
  x = 1;
}

The result has invalid indentation:

void test() {
    int x;
  x = 1;
}

The preference for using tabs for indentation is also not respected.
Comment 1 Tomasz Wesolowski CLA 2011-06-14 18:33:29 EDT
duplicate of 333937
Comment 2 Marc-André Laperle CLA 2011-06-15 22:30:47 EDT

*** This bug has been marked as a duplicate of bug 333937 ***