Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 37469 - [preferences] Setting 'use spaces for tabs' in Java IDE should be one option setting not four different settings
Summary: [preferences] Setting 'use spaces for tabs' in Java IDE should be one option ...
Status: RESOLVED DUPLICATE of bug 19036
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-10 16:36 EDT by sam_bravard CLA
Modified: 2004-01-12 11:19 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sam_bravard CLA 2003-05-10 16:36:31 EDT
Converting tabs to spaces is a very common setting for most programming teams 
(it eliminates any ambiguity about how many spaces a tab should be on what 
platform).

To achieve tab expansion under eclipse is rediculously difficult compared to 
other IDEs.  In Eclipse to set 'insert 4 spaces for each tab key pressed and 
leave real tabs (CTRLI) at 8 spaces' requires the following settings:

Java->Editor->Appearance->Tab Width = 8
Java->Editor->Typing->Insert Spaces for Tabs = on
Java->CodeFormatter->Style->Number of spaces representing an indentation level 
= 4
Java->CodeFormatter->Style->Insert tabs for indentation not spaces = off

It would be nice if there were just two global options 'Tab Size' (Number) 
and 'Insert Spaces instead of Tabs' (on/off) and were respected by the code 
formatter as well as other editors.
Comment 1 Olivier Thomann CLA 2003-05-12 11:01:07 EDT
Move to JDT/UI since this is related to changes in the preferences pages.
Comment 2 Dani Megert CLA 2004-01-12 11:19:51 EST

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