Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 362179 - Insert Spaces for Tabs not working in Indigo
Summary: Insert Spaces for Tabs not working in Indigo
Status: RESOLVED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 4.2   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-27 07:19 EDT by Ricardo Martins CLA
Modified: 2011-10-27 09:01 EDT (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 Ricardo Martins CLA 2011-10-27 07:19:31 EDT
Build Identifier: M20110909-1335

I've been trying to activate this option in Indigo for a week now.
I did an update from 3.7.0 to 3.7.1 and it didn't resolve the problem.

I tried to use spaces for tabs in CDT for C and in Java and the problem occurs in both editors. 

I found this exact problem in Helios too.

Reproducible: Always

Steps to Reproduce:
1. Go to Window->Preferences->General->Editors->Text Editors
2. Enable "Insert spaces for tabs"
3. Go to text editor and hit tab
4. (Optional) Enable "Show whitespace characters" to view better the tabs instead of spaces
Comment 1 Dani Megert CLA 2011-10-27 07:23:37 EDT
> I tried to use spaces for tabs in CDT for C and in Java and the problem occurs
> in both editors. 
They have their own settings. Not sure where it is in CDT but for the Java editor this is in the code formatter options.
Comment 2 Ricardo Martins CLA 2011-10-27 07:36:35 EDT
(In reply to comment #1)
> > I tried to use spaces for tabs in CDT for C and in Java and the problem occurs
> > in both editors. 
> They have their own settings. Not sure where it is in CDT but for the Java
> editor this is in the code formatter options.

The base option should overlap the Formatter if you don't explicitly change it. Although i tried to change it in the Java > Formatter and it didn't made any effect as expected. CDT, as far as I know, don't has an explicit option to use spaces instead of tabs. It used the general one.
Comment 3 Dani Megert CLA 2011-10-27 07:50:24 EDT
(In reply to comment #2)
> (In reply to comment #1)
> > > I tried to use spaces for tabs in CDT for C and in Java and the problem occurs
> > > in both editors. 
> > They have their own settings. Not sure where it is in CDT but for the Java
> > editor this is in the code formatter options.
> 
> CDT, as far as I know, don't has an explicit option to use
> spaces instead of tabs. It used the general one.
Nope, see https://bugs.eclipse.org/bugs/show_bug.cgi?id=350048#c2
Comment 4 Ricardo Martins CLA 2011-10-27 09:01:37 EDT
(In reply to comment #3)
> (In reply to comment #2)
> > (In reply to comment #1)
> > > > I tried to use spaces for tabs in CDT for C and in Java and the problem occurs
> > > > in both editors. 
> > > They have their own settings. Not sure where it is in CDT but for the Java
> > > editor this is in the code formatter options.
> > 
> > CDT, as far as I know, don't has an explicit option to use
> > spaces instead of tabs. It used the general one.
> Nope, see https://bugs.eclipse.org/bugs/show_bug.cgi?id=350048#c2

Ok. Tanks for the quick reply