To improve the development efficiency of myEclipse, set




original  http://www.cnblogs.com/xiaoMzjm/p/3903063.html

【Preface】

Why is my myeclipse so slow to open, why can others type a piece of code with a few shortcut keys? When I first started using myeclipse, I believe everyone has this question. Gradually, I also understand some configurations, and I am no exception. Here, I will make an essay on the commonly used configurations for easy reference.

【Appearance】

1. Change the font

Window-->preference-->general-->appearance-->colors and fonts-->Here are the font settings for each compilation environment.

2. Change the background of the editing interface

Download theme:   theme-1.epf      I uploaded theme-1.epf after downloading

File-->import-->general-->preferences-->browse-->choose the epf file you downloaded-->finish

【  Environment  】

1. Change the default file opening method

window-->preferences-->General-->Editors-->File Associations-->Select File Type-->Associated editors select the default opening method (Default)  

2. Change the compilation environment

Window-->Preferences-->Java-->Compiler --> Compiler compliance Level-->1.7

3. Modify the encoding method of some files

window-->preferences-->search jsp (or html or others)-->myeclise-->file and editors-->jsp (or html or others)-->encoding -->modify to the encoding you want Format

【Speed】

1. Turn off automatic inspection

windows-->perferences-->myeclipse-->validation-->Ticken all except the classpath dependency Validator under class, if a file needs to be checked, right click-->myeclipse-->run validation

2. Close unusable modules

Window--> Preferences --> General --> Startup and Shutdown, many of which are not used, please close if not used.

3. Turn off spell check

Window-->general-->editors-->text editors-->spelling-->enable spell checking is removed.

4. Increase JVM non-heap memory

myeclipse installation directory-->myeclipse.ini-->increase -XX:MaxPermSize to 384 or more

【Common Hotkeys】

  1. Code hints: alt+/
  2. Automatic typesetting: ctrl+shift+f
  3. Organize import: ctrl+shift+o
  4. Jump to the last edit: ctrl+q
  5. Automatic comment: ctrl+/ or press ctrl+shift+/ under the selected code
  6. Uncomment: ctrl+/ or press ctrl+shift+\ under the selected code
  7. Mobile code: alt+↓ or alt+↑ 
  8. Rename: Select the file and press F2
  9. Check which implementation class the method is in: When the cursor is on the method, use Ctrl+t to display the implementation class of this method
  10. Automatically generate specific code: available settings in window->preferences->java->editor->templates
  11. Set your own hotkeys: window->preferences->general->keys, here you can set hotkeys for creating various files, automatically generate hotkeys for get and set, automatically generate constructors, and toString methods.
  12. Encyclopedia of shortcut keys Baidu library entrance

What else do you often use (don’t make a complete list ^_^), welcome to make suggestions, thank you very much!

Guess you like

Origin blog.csdn.net/u014304688/article/details/54342285