Eclipse common shortcut keys and common configurations
The majority of this article refers to the Eclipse tool usage Tips Summary
Directory
- Common shortcut keys
- Shortcut keys in breakpoint debugging
- Common configuration
1 Common shortcut keys
Ctrl+shift+f formatting of the current code
Ctrl+f11 Run
F11 running in debug mode
Ctrl+1 Quick Fix (the most classic shortcuts, you don't have to say more)
Ctrl+l positioning in a row (for people with programs over 100 have the gospel)
ctrl+/comment on the current line, and then uncomment it
F3 jump to the place of declaration or definition
F4 Display class diagram
Ctrl + Alt +↓ (↑): Copy line down (UP)
2 shortcut keys in breakpoint debugging
Ctrl+shift+b inserts a breakpoint at the current line and then cancels the breakpoint (all breakpoints are canceled under Java view: Run->remove all Breakpoints)
F5: Jumping in method
F6: Debugging down-line
F7: Bounce Method
F8: Jump directly to the next breakpoint
3 Common configurations
Display line number : Window->preferences>general->editors->text editors-> tick show lines numbers
code automatic prompt function- prompt Faster: Windows->preferences->java->editor->content Assist, change the value of autoactivation delay (auto hint latency) from 200ms to 20ms, The automatic prompt is much faster.
code automatic prompt function- will be by "." trigger changed to "." and the an English letter trigger: "Auto Activation triggers for Java" by "." Replace ". Abcdefghijklmopqrstuvwxyz" with the following steps:
1) window->preferences->java->editor->content Assist; on the right auto Activation there's a "auto Activation triggers F Or Java ", whose value is determined by". " Set to ". ABC"; (Convenient for post-search), modify and select OK (OK)
2) file->export->general->preferences; Click Next and select Save Path (this article is saved on the desktop, named TEST.EPF)
3) Open the EPF file saved in step 2nd, open it with Notepad, ctrl+f find the string ". abc", and then change ". ABC" to ". abcdefghijklmnopqrstuvwxyz"; Save and close the Test.epf file
4) go back to the Eclipse interface, click file->import->general->preferences; in the From preference file to select the TEST.EPF files you just saved, click Finish. At this point, the setup is complete. (The next time you write Java code, you encounter "." and 26 letters will appear smart tips)
Eclipse common shortcut keys and common configurations