Bug 498364 - Insert Spaces for Tabs Not Working in Eclipse for Mac
Summary: Insert Spaces for Tabs Not Working in Eclipse for Mac
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: IDE (show other bugs)
Version: 4.6   Edit
Hardware: Macintosh Mac OS X
: P3 enhancement with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-22 12:07 EDT by Tim Ahrens CLA
Modified: 2017-08-24 01:33 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 Tim Ahrens CLA 2016-07-22 12:07:14 EDT
Eclipse for JavaScript and Web Developers
Version: Neon Release (4.6.0)
Build id: 20160613-1800

In Menu, Select Eclipse / Preferences
Expand General, Expand Editors, Select Text Editors /
Select 'Insert spaces for tabs', Select Apply and OK

In an html file, select a partially indented block or an unindented block of text and hit the tab key to indent the block.

Even though the block had previously been indented with spaces, or even if it is not indented at all, the level of indent produced by the tab key is all entered as tabs.

Desired behavior:
Highlighting a block should and hitting the tab key should produce the same block indented one extra level by spaces.
Comment 1 Tim Ahrens CLA 2016-07-22 12:08:36 EDT
This is a deal breaker - I cannot use this editor if after I finish developing a page of code, I have to go back and change all the indented tabs to spaces.
Comment 2 Tim Ahrens CLA 2016-07-22 13:21:27 EDT
Later found that the settings were buried under 
Web > CSS Files > Editor
and 
Web > HTML Files > Editor

Enhancement suggestion:
Detect other locations where this setting can be affected and link to them on the:
General > Editors > Text Editors

This way users will know where to look AND why the feature that they set is not working properly, and won't file bugs against your product like I did.
Comment 3 Rui Pinheiro CLA 2017-08-24 01:33:22 EDT
Also reported here with more details and suggestions in the comments:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=477158