Community
Participate
Working Groups
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.
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.
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.
That's what I hoped ;-)
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.
Tom, you know the dup by heart.
*** This bug has been marked as a duplicate of 73104 ***