MyEclipse Personalized Configuration

Source: Internet
Author: User

Reprinted from: http://blog.csdn.net/chen_zw/article/details/18728529

MyEclipse Personalization 1, modify the project file default encoding

Note:myeclipse 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 steps:"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 PlainCopyPrint?
    1. /**
    2. * @Description: ${todo}
    3. * @CreateTime: ${date} ${time}
    4. * @author: CHENZW
    5. * @version V1.0
    6.  */   
/** * @Description: ${todo} * @CreateTime: ${date} ${time} * @author: CHENZW  * @version V1.0 * *  
(2) Methods--Common method annotation Label

Common configurations are as follows:

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

(3) constructors--comment on the construction method

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

As shown below:

3. Editor font personalization NOTE:The default font in MyEclipse is [Consolas General 10], which is small on the normal notebook screen (14 inch), easy to make our eyesight tired, 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. Editor background color personalization Note:The default background color in the myeclipse is white, staring intently for long periods of time, damaging 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 In the BACKGROUNP color, tick off system Default, and customize the color as shown in:the most beneficial color to protect the eyes: {hue: 85; saturation: 120; Brightness: 210; }Similarly, the background color of the console console can be configured: 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 PlainCopyPrint?
    1. max_recent_workspaces= 5   
    2. recent_workspaces=d\:\\workspaces              //modifying the path is the default workspace directory   
    3. recent_workspaces_protocol= 3   
    4. show_workspace_selection_dialog=false            //whether MyEclipse selection box is displayed when workspace is started   
    5. eclipse.preferences.version=1   
Max_recent_workspaces=5recent_workspaces=d\:\\workspaces             //Modify the path to be the default workspace directory recent_workspaces_protocol= 3show_workspace_selection_dialog=false         //Whether the WORKSPACE selection box is displayed when MyEclipse is started Eclipse.preferences.version=1

6. Modify the package display formThe package default display in Note:package exploer view is flag, package plane display, all packages are displayed side by side, as shown in: You can change the package display form to hierarchical, which is layered, that is, the child package is placed under the package, as shown in: steps:Click the inverted triangle in the top right corner of the package Exploer view, 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, Indicates that the log never overwrites


address of this article: http://blog.csdn.net/chen_zw/article/details/18728529

MyEclipse Personalized Configuration

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.