Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 362179

Summary: Insert Spaces for Tabs not working in Indigo
Product: [Eclipse Project] Platform Reporter: Ricardo Martins <rfcmbean>
Component: TextAssignee: Platform-Text-Inbox <platform-text-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert
Version: 4.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

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