Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 340787 - Tabs are not expanded to spaces when instantiating a template
Summary: Tabs are not expanded to spaces when instantiating a template
Status: RESOLVED WORKSFORME
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 2.0.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Karsten Thoms CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-23 13:06 EDT by Mark Christiaens CLA
Modified: 2016-09-13 04:02 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Christiaens CLA 2011-03-23 13:06:09 EDT
Build Identifier: 20110301-1815

If you enable "insert spaces for tabs" (right click on editor -> general -> editors -> text editors) and then instantiate a template that contains tabs, then those tabs are not replaced by spaces. 

Using Xtext 2.0 M6



Reproducible: Always
Comment 1 Karsten Thoms CLA 2016-09-13 04:02:48 EDT
The preference does not have the effect that spaces are "replaced" by tabs, but rather that they are inserted. This means if you enable the option "insert spaces for tabs" and open an Xtend file, the existing tabs are left untouched. But if you would press a tab, spaces are inserted instead.

Also the autoformat does respect the setting.

I consider this as working as expected. Please reopen if I missed something.