Bug 89823 - [preferences] per-project tab width preference
Summary: [preferences] per-project tab width preference
Status: RESOLVED DUPLICATE of bug 73104
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows 2000
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Tom Hofmann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-31 09:07 EST by Noel Grandin CLA
Modified: 2005-04-06 06:42 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Noel Grandin CLA 2005-03-31 09:07:35 EST
Use case: I have a lot of projects sucked into my workspace(s). Some of them
belong to my company, some to another company, and many of them are CVS checkouts 
of open-source stuff. Quite a few of them have different ideas of what constitute
correct layout and tab preference.

It would be nice to be able to override the default "displayed tab width"
settings on a per-project basis.
Comment 1 Dani Megert CLA 2005-04-01 03:00:06 EST
There are different settings related to tab width:
- size of a tab that is already in the code
- setting to allow to either insert a tab or a certain amount of spaces if tab is 
  pressed
- tab related settings that the Java formatter uses. These settings are also
  used for most of the typing functionality in the Java editor

Which one have you in mind? Note that formatter preferences can already be set
per-project.
Comment 2 Noel Grandin CLA 2005-04-01 03:34:24 EST
Specifically. this one:
- size of a tab that is already in the code

I have projects scattered around which use 2,3,4 and 8 spaces per tab.

Ah, I see that the per-project formatter tab settings affect the display of a
tab that is already in the code in the java editor.

That solves my problem.
Comment 3 Dani Megert CLA 2005-04-01 03:38:30 EST
That's what I hoped ;-)
Comment 4 Noel Grandin CLA 2005-04-06 05:40:02 EDT
Re-opening this bug, since I finally figured out what my problem really is.

The use case description remains, but the core of the problem is this:
The project uses 4 space indentation, but believes that tabs are set every 8
characters.

Whatever editor was used to create the java files, normally indents with spaces,
but occasionally mixes in a few tabs.

In fact, this is the SUN Java coding convention, so I'm surprised no-one else
has noticed.
Comment 5 Dani Megert CLA 2005-04-06 05:47:47 EDT
Tom, you know the dup by heart.
Comment 6 Tom Hofmann CLA 2005-04-06 06:42:37 EDT

*** This bug has been marked as a duplicate of 73104 ***