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.
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.
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.
Will resolve later.
NetBeans.org Migration: changing resolution from LATER to WONTFIX