Common shortcuts and configurations for Eclipse
I. Common Eclipse shortcut keys:
Ctrl + F11 run
Ctrl + Shift +/Add/*... */comment in the code window
Ctrl + Shift + \ remove/*... */comment
Ctrl + Shift + O Add the missing import statement to Ctrl + 1 to quickly fix the problem (the most typical shortcut key is unnecessary)
Ctrl + L locate in a line (for those with more than 100 programs, there will be good news)
Ctrl + M maximize the current Edit or View (then press it, and vice versa)
Ctrl +/comment out the current row, and then press it to cancel the comment
Ctrl + Shift + F format the current Code
F3 jump to declaration or definition
F4 display class diagram
Ctrl + Alt + ↑: copy the row down (up)
Ii. Shortcut Keys in breakpoint debugging:
F5 Step Into single Step
F6 Step Over skip one Step
F7 Step Return jump out in one Step
Iii. Common configurations:
1. display the row number: Window-> Preferences> General-> Editors-> Text Editors-> check show line numbers.
2. enhanced the code auto-Prompt function of Eclipse and MyEclipse
Windows → Preferences → Java → Editor → Content Assist
The default value of AutoActivation Delay is 200 (in milliseconds). That is to say, the smart sensing prompt is displayed only after "." is played. After you change it to 20, the system prompts a significant increase in speed.
Principle: The "Auto Activation triggers for java" option refers to the option that triggers the code prompt. "to". abcdefghijklmnopqrstuvwxyz (, "refers to 26 letters and ., (These symbols trigger the code prompt function. (You can rest assured later.) How can I configure the code prompting function of Eclipse and MyEclipse? The procedure is as follows:
(1) Open Eclipse, and then "window" → "Preferences"
(2) Select "java", expand, "Editor", and select "Content Assist ".
(3) Select "Content Assist" and then see the "Auto Activation triggers for java" option under "Auto-Activation" on the right. Actually, the code prompt is triggered by the "." symbol.
(4). the "Auto Activation triggers for java" option should be followed by an abc letter after "." To facilitate later search and modification. Then, "apply" and click "OK ".
(5). Then, "File" → "Export", select "Perferences" in the pop-up window, and click "Next ".
(6) Select the export file path, export it to the desktop, enter "test" as the file name, and click "save ".
(7) Find the file "test. epf" you just saved on the desktop, right-click and choose "open with Notepad ".
(8). You can see a lot of Eclipse configuration information.
(9) press the "ctrl + F" shortcut key, enter ". abc", and click "find next ".
(10). Find the configuration information of ". abc.
(11). Change ". abc" to ". abcdefghijklmnopqrstuvwxyz (,", save and disable "test. epf ".
(12 ). return to the MyEclipse 6.0.1 interface, "File" → "Import", select "Perferences" in the pop-up window, click "Next", and select the modified "test. open the epf file and click Finish ". This step is similar to the preceding export step.
(13) Finally, of course, the Code test was conducted. Create a project and a class.
Conclusion: The "Auto Activation triggers for java" option refers to the option that triggers the code prompt. "to". abcdefghijklmnopqrstuvwxyz (, "refers to 26 letters and ., (These symbols trigger code prompts. By the way, you can modify the class name and interface name highlighted in different colors. You can configure it in "java"> "enditor"> "syntac ", expand "java"> "classes" on the right side, check the "Enable" option, and select your preferred color. Of course there are other related color configurations. Not to mention it. In fact, there are many items that can be configured in the "Preferences" to optimize MyEclipse. Specifically, You need to configure them according to your personal Preferences.
Iv. myeclipse font settings
Choose window> perferences> General> Appearance> Colors and Fonts> Text Font and click change to modify
-------------------------------------- Split line --------------------------------------
Install Java 8 and Eclipse 14.04 on Ubuntu 4.4 LTS
Hadoop Eclipse plug-in compilation and installation 1.2.0
Compile Hadoop plug-in Eclipse
Hadoop 1.2.1 compile Eclipse plug-in
Install JDK and Eclipse for C/C ++ in Ubuntu 13.10 (solving global menu problems)
How to install the latest Eclipse version in Ubuntu 14.04
-------------------------------------- Split line --------------------------------------
Eclipse details: click here
Eclipse: click here
This article permanently updates the link address: