标签:
Keywords: text editor, eclipse, indention, tabs, spaces, whitespaces, white spaces, convert
"I have enabled the "Insert spaces for tabs" but there are still tabs fore tabs in editor that I am writing code. Why?"
Actually, there are other settings beside the setting for Text Editor. See below.
Spaces only
Before version 3.6:
Window->Preferences->Editors->Text Editors->Insert spaces for tabs
Version 3.6 and later:
Note that the default text editor is used as the basis for many non-Java editors in Eclipse. It‘s astonishing that this setting wasn‘t available until 3.3.
Spaces only
Follow the same instructions for HTML, but select CSS Files instead of HTML Files.
By default, JSP files follow the formatting preferences for HTML Files.
XML files spacing is configured in Preferences.
Reference: http://stackoverflow.com/questions/407929/how-do-i-change-eclipse-to-use-spaces-instead-of-tabs
"Insert spaces for tabs" does not work in Eclipse
标签:
原文地址:http://www.cnblogs.com/weihongji/p/4395673.html