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

Summary: First level of tabs always expands to spaces
Product: java Reporter: ekolis <ekolis>
Component: EditorAssignee: Miloslav Metelka <mmetelka>
Status: RESOLVED WONTFIX    
Severity: blocker CC: dbalek
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

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