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 144067 - Number of spaces per indent and tab size default values should be equal
Summary: Number of spaces per indent and tab size default values should be equal
Status: RESOLVED WONTFIX
Alias: None
Product: editor
Classification: Unclassified
Component: Settings (show other bugs)
Version: 6.x
Hardware: All Linux
: P3 blocker (vote)
Assignee: issues@editor
URL:
Keywords:
Depends on: 142146
Blocks:
  Show dependency tree
 
Reported: 2008-08-15 13:50 UTC by deniss
Modified: 2009-05-11 11:50 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 deniss 2008-08-15 13:50:20 UTC
Basically it used for the same think - indention. It's really weird when you open file which uses tabs for indention.

Could you set the default value for "Tab size" to 4?
Comment 1 deniss 2008-08-19 19:42:43 UTC
So what do you think? Is that a reasonable request?
Comment 2 Vitezslav Stejskal 2008-08-20 07:50:19 UTC
Yes, I they should be the same and yes 4 sounds like a reasonable value. I actually changed that already as part of
#142146, but hasn't pushed it yet.
Comment 3 Vitezslav Stejskal 2008-08-20 10:44:46 UTC
http://hg.netbeans.org/main/rev/c5275d01150c
Comment 4 Quality Engineering 2008-08-20 17:25:07 UTC
Integrated into 'main-golden', available in build *200808201401* on http://bits.netbeans.org/dev/nightly/
Changeset: http://hg.netbeans.org/main/rev/c5275d01150c
User: Vita Stejskal <vstejskal@netbeans.org>
Log: #144067 (fixed): default tab-size changed to 4
Comment 5 deniss 2009-04-30 20:52:32 UTC
Is there a reason why it's back to 8 in 6.7 beta?
Comment 6 Miloslav Metelka 2009-05-05 09:40:08 UTC
It was because of issue 153609. For me personally the main reason was that Sun's JDK sources rely on tabSize == 8 but I agree with other reasons in that 
issue too. Please change it to 4 manually in your config if you need it.
Comment 7 deniss 2009-05-05 15:48:37 UTC
it seems to me that 8 tab size want to have people from C++ world, in Java world no one really cares about terminals and
Sun's JDK formatting :) most Java projects and IDEs have 4 ch. tab size, but it's not a problem to change it.

BTW: Are there any NB statistics about using tab size in Java lang. without "Expand tabs to spaces" turned on?
Comment 8 Miloslav Metelka 2009-05-11 11:50:01 UTC
I'm not aware about any statistics and googling did not reveal it as well.
IMHO many projects simply don't use '\t' for indentation at all just spaces.