Bug 82090 - [preferences] Tabbing broken in M4.
Summary: [preferences] Tabbing broken in M4.
Status: RESOLVED DUPLICATE of bug 73104
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows 2000
: P2 normal (vote)
Target Milestone: 3.1 M5   Edit
Assignee: Tom Hofmann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-03 09:29 EST by Mario Grgic CLA
Modified: 2005-02-11 11:42 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mario Grgic CLA 2005-01-03 09:29:55 EST
Eclipse Platform

Version: 3.1.0
Build id: 200412162000

Starting from 3.1 M4 it is no longer possible to control the displayed tab 
width in the preferences. This breaks backward compatibility and makes it 
really hard to edit code written in legacy editors (vi).
We can not do away with this setting, it is still needed and it should be put 
back either in the code formatter preferences or where it used to be in the 
editor preferences.

The Eclipse environment I work in is configured so that tabs are treated as 4 
spaces and spaces are inserted, however, if I edit code written in vi, I want 
tab characters to be treated as 8 spaces for formatting to look predictable.
I can no longer do this.
Comment 1 Dani Megert CLA 2005-01-03 09:35:39 EST
You can control it: General > Editors > All Text Editors
Comment 2 Mario Grgic CLA 2005-01-03 09:45:59 EST
Alright, so the setting is available, but it seems it doesn't do anything. If 
I set displayed tab width to 8 spaces in all editors and in java formatter I 
set tab to be 4 spaces, and open a java file edited in vi with tabs used, the 
displayed tab width is 4 not 8 as my settings says it should be.
Comment 3 Mario Grgic CLA 2005-01-03 09:51:33 EST
Please note that this only happens with java files, i.e. if I open a plain 
text file, its tab chars will be treated as 8 spaces as expected (with the 
above settings).

Tab characters in java files are treated according to java formatter 
preferences, which seem to override all editor settings, but they shouldn't. 
I still want my tab to be replaced by 4 spaces when I edit in Eclipse, but I 
want existing tab characters be treated as 8 spaces (those tab characters are 
from vi files). 
Comment 4 Tom Hofmann CLA 2005-02-09 05:58:20 EST
So you want this: 
- a preference that controls the visual size of tab characters
- which overrides whatever you have specified in the formatter preferences

If bug 73104 makes it into M5, you could have what you request by setting
tabSize=8, indentationSize=4, useTabs= false. Please correct me if I am wrong.

Marking as dependendent on bug 73104 - we'll find out in the next couple of days
whether it will be in M5 or not.
Comment 5 Tom Hofmann CLA 2005-02-11 11:42:31 EST
Fixing bug 73104 fill fix this bug - marking as dup.

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