MyEclipse Personalization Settings

Source: Internet
Author: User

1. Modify the project file default encoding

Note:myeclipse The default encoding is GBK, that is, files that do not have the encoded format are encoded by default using GBK, and worse, the JSP, javascriptt default encoding is Iso-8859-1, We know that ISO-8859-1 does not support Chinese characters, so we have to modify the default encoding of the project file.

Step one, modify default default encoding:"Window"--"preferences"--"general"--"Workspace"--"right Interface"--"Text file en" Coding "--" other "-->[Select UTF-8] (custom)

As shown in the following:

Note: The global default encoding is modified only for those file types that are not encoded, such as. java files, and you must do step two if you have encoded file types such as JSP, JavaScript, and so on.

Step Two: Modify the specified file type encoding:"Window"--"preferences"--"general"--"Content types"--"right Interface"--" Content types: "--" Text "--[select the corresponding file type]--" Default encoding "--> [Fill in UTF-8] (customizable)-->" Update "

Summary: Step two priority is higher than step one, for example, we specified in step two. jsp file encoding is UTF-8, then we set the global default encoding to GBK in step one in time, then our new JSP file is still UTF-8 encoded. Also, it should be noted that the setting of the default encoding of the step will only be applied to the new project, and the built project should be modified using right-click Properties-----resource.

2. Configure code Templates, concise codes

Step:"Windows" –> "Perferences" –> "Java" –> "code Style", "Code Templates"

Common configurations: Types and methods under comments

(1) Types--Class comment label

Common configurations are as follows:

[Java]View PlainCopy
    1. /**
    2. * @Description: ${todo}
    3. * @CreateTime: ${date} ${time}
    4. * @author: CHENZW
    5. * @version V1.0
    6. */

(2) Methods--Common method annotation Label

Common configurations are as follows:

[Java]View PlainCopy
    1. /**
    2. * @Description: ${todo}
    3. * @author: CHENZW
    4. * @CreateTime: ${date} ${time}
    5. * ${tags}
    6. * @throws
    7. */

(3) constructors--comment on the construction method

(4) overriding Methods--annotation of the overriding method

As shown below:

3, the editor font personalization note:myeclipse The default font is [Consolas General 10], the font on the ordinary notebook screen (14 inch) display is small, easy to make our eyesight fatigue, so we can personalize the style of the font. steps:"Windows" –> "Perferences" –> "General"-"appearance"-"Colors and Fonts" in colorscolors and Fonts bounds On the surface, select Basic--Text font, click the Edit button, as shown in: Usually I will choose the size of the fourth number font:

3, the editor background color personalization note:myeclipse The default background color is white, long time attentively stare, damage our eyesight. Now we will change the background color to protect the eyesight of the yellow-green, personalized to customize a variety of color effects: steps:"Windows" –> "Perferences" –> "General"--"Editors"-"Text Editors" Select the lower right appearance color options list  BACKGROUNP color in, tick off system Default, and customize the color as shown in: the most beneficial to protect the eye color: {hue: 85; saturation: 120; Brightness: 210; Similarly, you can configure the background color of the console console: steps:"Windows" –> "Perferences" –> "Run/debug" and "Console" select the lower right corner of the background color, configure custom colors please refer to.

4. Modify source folder, Output folder (classpath), Web-root folder directory Step One, (1) Modify the default directory for source folder, Output folder (classpath):"Windows" –> "Perferences" –> "Java"--"Build Path" > Modify the source folder name and output folder name as shown in: (2) Modify the default path for Web-root folder:"Windows" –> "Perferences" –> "MyEclipse"-"Java Enterprise Project"-"Web Project" > Modify Web Root folder N Ame, as shown in: Step Two: (1) Modify the current project's source folder, Output folder (classpath) directory:Select the item--right--"Properties"--"Java Build Path" as shown in: (2) Modify the Web-root folder path of the current project:Select Items--Right--"Properties"-"Myclipse"-"Project Facets" and "Web" as shown in:

5. Modify the workspace directory steps:Open org.eclipse.ui.ide.prefs file, file path: D:\Program files\myeclipse professional\configuration\. Settings (assuming the MyEclipse installation path is: D:\Program files\myeclipse Professional), the file contents are as follows: [Java]View PlainCopy
    1. max_recent_workspaces=5
    2. Recent_workspaces=d\:\\workspaces //Modify the path to be the default workspace directory
    3. Recent_workspaces_protocol=3
    4. Show_workspace_selection_dialog=false //whether the WORKSPACE selection box is displayed when MyEclipse starts
    5. eclipse.preferences.version=1
6. Modify package Display Form Note:package The package default display in Exploer view is flag, package plane display, all packages are displayed side by side, as shown in: Can change the package display form to hierarchical, that is, the layering mode, also is to place the child package under the package as shown in: steps:Click the inverted triangle in the top right corner of the package Exploer view and select Package presentation, hierarchical: 7. Remove unreferenced references

Note: usually some references are unused, MyEclipse will have a yellow flag in the sidebar, this part of the unused reference if not removed, a large amount of code, so that the compiler run slower, the second effect is beautiful. There are 3 main ways to quickly remove these references.

1. Use the shortcut key Ctrl+shift+o. Can only delete a class.

2. Batch removal :

On a package, right-click Source, Organize Imports, as shown in:

3. Configure automatic removal :

steps : "Windows" –> "Perferences" –> "Java"-"editor"-"Save Actions", tick on "Perform the selected Actions on Save "and" Organize Imports "

8. Configure the console log length

The note:console console displays only 80000-character logs, which are overwritten by default, and you can modify the console console to show the length of the log, or even keep the log from overwriting.

step : "Windows" –> "Perferences" –> "Run/debug" and "console" remove "Limit Console Output" tick, indicating that the log never overwrite

address of this article: http://blog.csdn.net/chen_zw/article/details/18728529 Note:MyEclipse a variety of personalized configuration will continue to update, here first dig a pit, reproduced this article please indicate the source of reprint, thank you!

MyEclipse Personalization Settings

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.