Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 356069 - Different language editors should be able to set their own "Use Space for Tabs" feature
Summary: Different language editors should be able to set their own "Use Space for Tab...
Status: RESOLVED WORKSFORME
Alias: None
Product: CDT
Classification: Tools
Component: cdt-editor (show other bugs)
Version: 8.0   Edit
Hardware: PC Linux
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Anton Leherbauer CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-29 08:50 EDT by jeffs CLA
Modified: 2011-08-29 10:01 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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).