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

Bug 356069

Summary: Different language editors should be able to set their own "Use Space for Tabs" feature
Product: [Tools] CDT Reporter: jeffs <jeffsaremi>
Component: cdt-editorAssignee: Project Inbox <cdt-editor-inbox>
Status: RESOLVED WORKSFORME QA Contact: Anton Leherbauer <aleherb+eclipse>
Severity: enhancement    
Priority: P3 CC: cdtdoug, daniel_megert, remy.suen
Version: 8.0   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description jeffs CLA 2011-08-29 08:50:32 EDT
In C/C++ I'd like for the editor to replace my tabs with spaces.
When editing Make files I do not want this feature. I want the tabs to be preserved since they are a part of the syntax.
Currently in Eclipse there is a "global" way of choosing the tab-replacement feature.
This should feature should be moved down to language-specific editors.


-- Configuration Details --
Product: Eclipse 1.4.0.20110609-1120 (org.eclipse.epp.package.cpp.product)
Installed Features:
 org.eclipse.platform 3.7.0.v20110530-9gF7UHNFFt4cwE-pkZDJ7oz-mj4OSEIlu9SEv0f
Comment 1 Remy Suen CLA 2011-08-29 09:05:16 EDT
As far as I understand this is a feature that the Makefile editor needs to support individually. Text, please confirm.
Comment 2 Dani Megert CLA 2011-08-29 09:17:31 EDT
(In reply to comment #1)
> As far as I understand this is a feature that the Makefile editor needs to
> support individually. Text, please confirm.

Yes, the general setting can be honored but others (like e.g. JDT) are free to override this with their own settings.
Comment 3 Anton Leherbauer CLA 2011-08-29 10:01:31 EDT
The Makefile editor already ignores the global "Use Space for Tabs" preference.  See bug 186106.
The C/C++ editor has it's own "Space for Tabs" preference as part of the Code Style settings (similar to JDT).