Bug 29909 - Incorrect indentation after newline
Summary: Incorrect indentation after newline
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows XP
: P2 normal (vote)
Target Milestone: 2.1 RC1   Edit
Assignee: Dani Megert CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 26590 28454 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-01-21 13:03 EST by rick cameron CLA
Modified: 2003-02-27 06:24 EST (History)
5 users (show)

See Also:


Attachments
fixes indentation problems (1.29 KB, patch)
2003-02-10 11:52 EST, Nikolay Metchev CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description rick cameron CLA 2003-01-21 13:03:46 EST
I have my preferences set as follows:
Java | Editor | Displayed tab width: 8
Java | Code formatter | Insert tabs for indentation: No
Java | Code formatter | Number of spaces representing an indentation level: 4

When I have the following code:

class ContainerSelection extends Selection
{
}

and I position the caret after the { and press Enter, Eclipse inserts a new 
line and 8 spaces. It should only insert 4.
Comment 1 rick cameron CLA 2003-01-21 13:04:19 EST
Found in I20030121.
Comment 2 Kai-Uwe Maetzel CLA 2003-02-10 10:11:05 EST
*** Bug 28454 has been marked as a duplicate of this bug. ***
Comment 3 Nikolay Metchev CLA 2003-02-10 11:52:03 EST
Created attachment 3392 [details]
fixes indentation problems

I attatched it to the previous bug but it was marked as a duplicate of this one
so I will re-submit it here.
Comment 4 Nikolay Metchev CLA 2003-02-12 06:15:21 EST
*** Bug 26590 has been marked as a duplicate of this bug. ***
Comment 5 Dani Megert CLA 2003-02-17 12:13:28 EST
The patch fixes the problem.
I filed bug 32033: Spaces for TAB preference is confusing

Fixed > N20030217
Comment 6 Christof Marti CLA 2003-02-27 06:24:29 EST
start verifying