Bug 44700

Summary: Set editor tab width per package fragment root (e.g. for attached JDK source)
Product: [Eclipse Project] JDT Reporter: Ross Judson <eclipse>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: ASSIGNED --- QA Contact:
Severity: enhancement    
Priority: P5 CC: bartoki, didierloiseau+eclipse, eclipse, eclipse, f_joseph.klein, mail, markus.kell.r, ryenus
Version: 3.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard: fix candidate

Description Ross Judson CLA 2003-10-11 15:15:53 EDT
With Eclipse we are often working with code from many people, and the tab 
settings used by those people aren't always the same.  It would be useful to 
be able to designate, at the project level or at the package level, a tab 
setting.  All JDK source uses 8 char width, for example, but very few people 
use this setting themselves.  I personally use the visually appealing but 
oddball tab width of 3.
Comment 1 Dani Megert CLA 2003-10-13 04:35:12 EDT
The setting should probably be per package fragment root.
Comment 2 Dani Megert CLA 2005-12-05 06:48:27 EST
*** Bug 119162 has been marked as a duplicate of this bug. ***
Comment 3 Sebastian Bauer CLA 2005-12-05 07:10:12 EST
Please keep in mind, that I also need this functionallity for other plugins, e.g. for CDT. So this feature should be not too JDT specific.
Comment 4 Dani Megert CLA 2005-12-05 07:16:32 EST
How do you need it in the CDT scenario? Is per project really good enough there?
Comment 5 Sebastian Bauer CLA 2005-12-05 07:34:44 EST
For my current needs, it would be enough.

Originally I thought adding this as an option for the Info section within the project properties and/or folder properties would be a good idea (similar to the text encoding stuff).
Comment 6 Dani Megert CLA 2007-06-22 09:59:16 EDT
Get rid of deprecated state.
Comment 7 Dani Megert CLA 2008-02-15 02:51:10 EST
*** Bug 219045 has been marked as a duplicate of this bug. ***
Comment 8 ryenus ' CLA 2008-02-15 03:35:55 EST
Thanks to Daniel, the Bug 219045 I've just filed can be treated as a duplicate, but I doubt if only Tab width should be context (package/project) specific, for viewing library source, that's fine, but considering project specific code style, I think only Tab width is not fine.

Comment 9 Didier Loiseau CLA 2011-07-29 12:06:01 EDT
This enhancement request is so old although it just seems to be a little preference to add :-P

It's such a shame to browse the JDK source code when your displayed tab width is not 8 spaces :(

I wish I had the knowledge to hack Eclipse…
Comment 10 Markus Keller CLA 2012-09-26 13:19:02 EDT
*** Bug 390445 has been marked as a duplicate of this bug. ***
Comment 11 Dani Megert CLA 2013-04-25 02:56:17 EDT
*** Bug 406466 has been marked as a duplicate of this bug. ***
Comment 12 Dani Megert CLA 2013-10-09 06:44:02 EDT
*** Bug 418937 has been marked as a duplicate of this bug. ***