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 195109

Summary: Option Windows: Editor Help Unclear
Product: usersguide Reporter: Excels
Component: EditorAssignee: Kenneth Ganfield <kganfield>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P4    
Version: 6.x   
Hardware: PC   
OS: Windows Vista   
Issue Type: ENHANCEMENT Exception Reporter:

Description Excels 2011-02-06 23:38:19 UTC
Quoted from the help:

Expand Tabs to Spaces. When selected, inserts spaces when the Tab key is typed.  When unselected, typing the Tab key inserts the tab character (\t) into the file if possible. It also replaces preceding spaces with the tab character if possible. The Source Editor calculates where to place tab characters based on the value of the Tab Size property.
If Expand Tabs to Spaces is unselected and the Number of Spaces per Tab is different than the Tab Size property, the indentation created by typing the Tab key is made up of a combination of spaces and tab characters. It is easiest to predict the location of tab characters if you set Number of Spaces per Tab to an even multiple or divisor of Tab Size.


However, I can't actually find the option "Number of Spaces per Tab".  Perhaps "Number of Spaces per Indent"?

Also, just as an informal question, is anyone else having issues where even with "Expand Tabs to Spaces" unchecked, unwanted spaces still showing up?
Comment 1 Kenneth Ganfield 2011-05-10 10:23:31 UTC
Fixed typo in help topic. Spaces per Tab should be Spaces per Indent.

http://hg.netbeans.org/main/rev/ecb15da1b253

Regarding the unwanted spaces, I have not noticed this behavior.
The submitter should file a new issue if there is an example of the behavior that can be reproduced.
Comment 2 Kenneth Ganfield 2011-05-11 12:33:21 UTC
marking as fixed. confirmed in recent build
Comment 3 Quality Engineering 2011-05-11 19:39:48 UTC
Integrated into 'main-golden', will be available in build *201105111436* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/ecb15da1b253
User: kganfield <kganfield@netbeans.org>
Log: #195109, Fix typo in help topic