1. Change Utf-8:
When I first used eclipse, I installed a plugin snipet? , similar to auto-complete, do not know what the role, before the installation has an option, let the plug-in to adapt to the previous plug-in, or let the previous plug-in to adapt to the plug-in now, I choose the default first. After the restart, there is garbled, the original Chinese comments have become garbled things.
Look up the information on the Internet, to change to utf-8 better. Reference http://blog.csdn.net/wodwl/article/details/7737620
1, Windows->preferences->general->workspace, the right text file encoding, select Other, change to UTF-8, after the new establishment of the project its Properties dialog box Text The file encoding is UTF-8.
2, Windows->preferences->general->content Types, right context Types tree, click on each subkey in the text, and set its encoding to "UTF-8", point update!
3, the project Build.properties add a line, javacdefaultencoding. = UTF-8. This setting needs to ensure that all Java source files are UTF-8 encoded, and if not all, refer to the Eclipse Help (Plug-in development environment Guide > Reference > Feature and Plug-in Build configuration), it is recommended that all Java source files are UTF-8 encoded.
4, if the plug-in development, RCP application development originally based on other codes, such as GB18030, want to convert to UTF-8, then first, do the above work; then convert the original code by looking for the encoding conversion tool, such as the Iconv-based batch conversion tool.
5. window->preferences->web->jsp Files Panel Select ISO 10646/unicode (UTF-8)
2. Turn on the fully automatic matching function:
Content Assist, Editor-in-Java, Windows-i-Preferences
ENABL Auto Activation:true
Set up triggers for auto-completion
Auto activation triggers for JAVA:.ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZ (
Setting the delay for auto-completion
Auto Activation delay:0
Settings before eclipse is used