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 135843 - Expand tabs to space setting ignored at startup
Summary: Expand tabs to space setting ignored at startup
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P2 blocker (vote)
Assignee: Torbjorn Norbye
URL:
Keywords:
Depends on: 90403
Blocks:
  Show dependency tree
 
Reported: 2008-05-26 23:07 UTC by kevinisabelle
Modified: 2009-02-27 14:26 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 kevinisabelle 2008-05-26 23:07:22 UTC
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.
Comment 1 inonit 2008-05-27 15:43:31 UTC
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.
Comment 2 mikepanev 2008-05-28 03:27:28 UTC
  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)
Comment 3 Torbjorn Norbye 2008-06-18 21:16:22 UTC
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).