original
【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】
- Code hints: alt+/
- Automatic typesetting: ctrl+shift+f
- Organize import: ctrl+shift+o
- Jump to the last edit: ctrl+q
- Automatic comment: ctrl+/ or press ctrl+shift+/ under the selected code
- Uncomment: ctrl+/ or press ctrl+shift+\ under the selected code
- Mobile code: alt+↓ or alt+↑
- Rename: Select the file and press F2
- 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
- Automatically generate specific code: available settings in window->preferences->java->editor->templates
- 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.
- 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!