Set MyEclipse encoding, completion shortcuts, and font size

Source: Internet
Author: User

1. Set MyEclipse Encoding
(1) modify the Workspace encoding method: Window --> Preferences --> General --> Workspace --> Text file encoding
(2) modify the Encoding method of a class of Files: Window --> Preferences --> General --> content Types --> modify default Encoding
(3) modify the Encoding method of a single file: Right-click the source code --> General --> Editors --> Test Editors --> Spelling --> Encoding
(4) modify the encoding method of a single project: Right-click the project and choose Properties> Resource> Text file encoding> other
(5) Encoding of the newly created file: window --> preference --> MyEclipse --> Files and Editors --> select subitem --> Encoding

2. Set the MyEclipse completion shortcut key
The specific settings are as follows:
1. Open MyEclipse, and then "window" --> "Preferences"
2. Select "java", expand, "Editor", and select "Content Assist ".
3. Select "Content Assist" and then see the "Auto Activation triggers for java" option under "Auto-Activation" on the right. Actually, the code prompt is triggered by the "." symbol.
4. The "Auto Activation triggers for java" option should be followed by an abc letter after "." To facilitate later search and modification. Then, "apply" and click "OK ".
5. Then, choose "File"> "Export", select "General"> "Perferences" in the pop-up window, and click "Next ".
6. Select the export file path, export it to the desktop, enter "test" as the file name, and click "save ".
7. Find the file "test. epf" you just saved on the desktop and open it for editing.
8. You can see a lot of information about configuring MyEclipse.
9. Press the "Ctrl + F" shortcut key, enter ". abc", and click "find next ".
10. Find the configuration information of ". abc.
11. set ". abc "to". abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ (, <", return to the MyEclipse interface," File ">" Import ", select" Perferences "in the pop-up window, and click" Next ", select the modified "test. open the epf file and click Finish ". This step is similar to the preceding export step.
13. Finally, of course, the code is tested. You will immediately find that there are prompts, and there will be a lot of related prompts no matter which letter you typed, It is smooth and convenient.

After the modification, the code prompt is displayed after you enter a character 200 milliseconds by default. If the input is too slow, you need to increase the prompt delay. If you think it is too slow, you can change the number to a smaller value, but the smaller the number, the higher the requirement for system performance. You can configure the number based on the hardware configuration of your machine.

3. Set the font size of Myeclipse
Open the Myeclipse software. Window-> preferences-> General-> Appearance-> Colors and Fonts-> Java, select Terminal Console Font (set to default: Text Font) on the right of the window ), then find Edit in the window. A window will pop up and you will know how to modify it.

4. Set the length of each line to be formatted.
Window --> preferences --> java --> code style --> formatter --> edit --> line wrapping-> maximum line width can be modified and saved.

 

5. Set the annotation format of the class
The procedure is as follows:
Window-> Preferences-> Java-> Code Style-> Code Templates-> Comments-> Types-> Edit

/***** @ Author Lin ji qin * @ version 1.0 $ {date }$ {time }*/

Window-> Preferences-> Java-> Code Style-> Code Templates-> CODE-> New Java files-> Edit

$ {Filecomment }$ {package_declaration}/***** @ author Lin ji qin * @ version 1.0 $ {date }$ {time} */$ {typecomment} $ {type_declaration}

6. Set the MyEclipse annotation Date Format
In MyEclipse/eclipse, if you find that your comments are in the English format (Mon Mar 21 10:57:13 CST 2011), instead of the Chinese format or the format you want, you can solve the problem as follows.
In the eclipse. ini configuration file, change-Duser. language = en to-Duser. language = zh-cn, and restart Myeclipse.

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.