1. Use spaces to replace the tab in eclipse Basic Editor settings
Window-> preferences-> General-> editors-> text editors
2. For Java, HTML, ant, and other extension editors, you also need to set them separately.
1). For Java: sets Java code style in eclipse
Window-> preferences-> JAVA-> code style-> formatter
Add a new profile, For more detail, test it in eclipse please
2). For ant: sets build. XML in eclipse
Window-> preferences-> ant> Editor-> formatter
Uncheck [Use Tab character instead of spaces] Option.
3). For HTML:
Window-> preferences-> Web and XML-> HTML files-> HTML source
Select "indent using tabs" and set space = 4
4). For XML:
Windows> preferences> Web and XML> XML files> XML Source
Select "indent using tabs" and set space = 4
3. How to configure files such as JSP/properties to create or read using UTF-8 encoding by default?
Window-> preferences-> General-> content types
Select the specified extension, specify the encoding, and then update.
4. Convert the carriage return line feed format of an existing file
After all, it is not a professional editor and does not seem to have this function.
Note:
Post from: http://koda.javaeye.com/blog/127200