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 108326 - First level of tabs always expands to spaces
Summary: First level of tabs always expands to spaces
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Miloslav Metelka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-27 19:37 UTC by ekolis
Modified: 2009-11-02 10:59 UTC (History)
1 user (show)

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 ekolis 2007-06-27 19:37:09 UTC
In the Java and JavaFX editors, the first level of tabs will always expand to spaces, even with the "expand tabs to
spaces" options turned off.
Comment 1 Jan Lahoda 2007-07-13 15:51:04 UTC
There are actually three settings that need to be considered:
-Expand tab to space
-Tab Size (Tools/Options/Advanced Options/Editing/Editor Settings/Java Editor/Tab Size) (defaults to 8)
-Number of Spaces per Indent (defaults to 4)

If the Tab is pressed once, it adds only 4 spaces, second time it adds another 4 space, and as 4+4 == 8 == Tab Size it
replaces the spaces with Tab (provided Expand tab to Spaces is off). If you will set Tab Size to 4 or Number of Spaces
per Indent to 8, the first Tab with actually insert the Tab character.

So, this is currently as designed, the question is whether we shouldn't make it simpler.
Comment 2 Jan Becicka 2008-11-13 10:08:51 UTC
Will resolve later.
Comment 3 Quality Engineering 2009-11-02 10:59:54 UTC
NetBeans.org Migration: changing resolution from LATER to WONTFIX