This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 112275 - Automatic indention broken
Summary: Automatic indention broken
Status: RESOLVED DUPLICATE of bug 105623
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@editor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-08 09:46 UTC by tkellerer
Modified: 2007-11-05 13:44 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tkellerer 2007-08-08 09:46:25 UTC
The current dev build 20070808 (actually the 3 or 4 before that as well) completely ignore the tab settings from the
indention panel (Tools -> Options -> Editor -> Indention)

I selected 2 for Number of Spaces per Indent and Tab Size and disabled "Expand Tabs to Spaces". 
However when I use e.g. Ctrl-T or Ctrl-D to indent or un-indent a line it is always shifted by 4 spaces. Additionally
the editor uses Spaces even though I disables "Expand Tabs to Spaces".

The settings in Java Code -> Formatting are aligned with the above and when I presse Ctrl-Shift-F the indention is
corrected but it still uses spaces instead of tab characters.
Comment 1 Miloslav Metelka 2007-08-08 13:00:00 UTC
Yes, it's just being fixed (the java will consistently used the options->editor->indentation settings too).
We will check your usecase to make sure it is fixed.
Comment 2 Petr Hrebejk 2007-08-08 16:14:28 UTC

*** This issue has been marked as a duplicate of 105623 ***
Comment 3 tkellerer 2007-08-09 20:08:13 UTC
I don't think this is a duplicate of 105623. 
If I look at 105623 this does not cover automatic indention during editing (e.g. hitting enter at the end of the line)
which is still broken. The formatting using Ctrl-Shift-F is indeed fixed and uses Tabs instead spaces but when I hit
enter, the next line is indented using spaces and not the number of spaces I defined (2)