Settings before eclipse is used

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.