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.
When you start netbeans, if the "Expand tabs to space" in indentation is set to false, the IDE does add spaces when you press enter to create a new line. The only way I can really have hard tabs is to : 1) go back to the options and check "Expand tabs to space". 2) click ok 3) Open the options again, change it back to unchecked 4) close the panel. 5) The hard tabs indentation will be ok. Important notice: This bug only appears to happen to javascript files (javascript indentation mecanism). This setting remain ok for java editing, there is no need to force it with the options dialog like I do for javascript.
In my installation, the tab size itself is ignored for JavaScript -- the editor renders files with tab size 8. If I go to the indentation dialog and change at least one value (e.g., even the right margin marker) and press OK, the editor renders the files correctly. I also have "expand..." off.
Same problem here. However, you don't need to change anything in the options. Closing the editor tab and opening it again does the job. (With default key bindings: Ctrl+Shit+1, Ctrl+W, Enter)
This is fixed now; I just tested the Expand Tabs to Space setting and the Tab Size settings in a daily build and it works as expected. (It didn't work with a build two weeks ago). This is fixed by Vita's editor settings rewrite (issue 90403).