Annotation shortcut in eclipse.

Source: Internet
Author: User

(1) Ctrl + Space
Description: Content assistant. Provides prompts for methods, variables, parameters, and javadoc,
Should be carried in a variety of occasions, in short, you need to prompt the first press this shortcut key.
Note: do not conflict with the input method switching settings.

(2) Ctrl + Shift + Space
Note: Variable prompt
(3) Ctrl +/
Note: Add/Remove // annotation. In eclipse2.0, the annotation for elimination is Ctrl +/

(4) Ctrl + Shift +/
Note: Add/**/comment

(5) Ctrl + Shift +/
Note: delete/**/comment

(6) Ctrl + Shift + F
Note: The code is automatically formatted.

(7) Ctrl + 1
Note: you can modify variable names in source code in batches and use them on catch blocks.

(8) ctril + F6
Note: interface switching

(9) ctril + Shift + m
Note: Find the desired package

(10) ctril + Shift + O
Note: The required package is automatically introduced.

(11) CTRL + ALT + S
Note: Quick menu for source code. Generate getters and setters and surround with try/catch
Block is commonly used. We recommend that you add them as shortcut keys. You can set the shortcut keys on Windows> preferences> workbench> keys.

2. Shortcut Key List

Edit
Shortcut for scope Function
Globally search and replace Ctrl + F
Search for the previous Ctrl + Shift + K in the text editor
Search for the Next Ctrl + K in the text editor
Globally undo Ctrl + z
Global copy Ctrl + c
Select Alt + Shift + continue for global recovery.
Globally cut Ctrl + x
Global quick correction ctrl1 + 1
Global content assist Alt +/
Globally select Ctrl +
Delete globally
Global context information Alt +? Alt + Shift +? CTRL + Shift + Space
Java editor display tooltip description F2
Java editor selects the encapsulation element Alt + Shift + Transform
Java editor selects the previous element Alt + Shift + ↓
Select the next element Alt + Shift + →
Text Editor incremental search Ctrl + J
Text Editor incremental reverse lookup Ctrl + Shift + J
Globally paste Ctrl + V
Global redo Ctrl + Y

View
Shortcut for scope Function
Zoom in globally Ctrl + =
CTRL +-

Window
Shortcut for scope Function
Global activation editor F12
Global switch editor Ctrl + Shift + W
Global editor Ctrl + Shift + F6
Global View Ctrl + Shift + F7
Global Perspective Ctrl + Shift + F8
The next global editor Ctrl + F6
Next Global View Ctrl + F7
CTRL + F8
Text Editor display ruler context menu Ctrl + W
Global View menu Ctrl + F10
Global display of System Menu Alt +-

Navigation
Shortcut for scope Function
Open the structure Ctrl + F3 in the Java editor.
Global Open type ctrl + Shift + T
Global Open Type hierarchy F4
Global open declaration F3
Open external javadoc SHIFT + F2 globally
Globally open resource Ctrl + Shift + R
Global rollback history Alt + rollback
Global forward history Alt + →
CTRL +,
CTRL +.
Java editor display outline Ctrl + O
Globally open the type ctrl + Shift + H in the hierarchy
Globally move to matching parentheses Ctrl + Shift + P
Go global to the previous editing location Ctrl + q
Go to the previous Member Ctrl + Shift + ← in the Java editor.
Go to the next member in the Java editor Ctrl + Shift + ←
Text Editor to Ctrl + L

Search
Shortcut for scope Function
Globally displayed in the file Ctrl + Shift + u
Global Search dialog box Ctrl + H
Declare Ctrl + G in the global Workspace
Reference Ctrl + Shift + G in the global Workspace

Text editing
Shortcut for scope Function
Text Editor rewrite switch insert
CTRL + ← on the text editor
CTRL + ←

File
Shortcut for scope Function
Save Ctrl + x Ctrl + S globally
Print Ctrl + P globally
Globally Disable Ctrl + F4
Globally save Ctrl + Shift + S
Globally Disable Ctrl + Shift + F4
Global attribute Alt + enter
Globally create Ctrl + n

Project
Shortcut for scope Function
Global build Ctrl + B

Source code
Shortcut for scope Function
Java editor format Ctrl + Shift + F
Java editor uncomment Ctrl +/
Java editor comment Ctrl +/
Add and import Ctrl + Shift + M to the Java Editor
Java editor organization import Ctrl + Shift + O
The Java editor uses try/catch blocks to enclose unset ones, which is too common. Therefore, we recommend that you set them here.
You can also use Ctrl + 1 for automatic correction.

Run
Shortcut for scope Function
F7 is returned in one global step.
Skip F6 in one global step
Global One-Step Jump to F5
Global One-Step Jump-in and select Ctrl + F5
Global debugging last started F11
Continue F8 globally
Shift + F5 in one step using filters globally
Globally Add/remove breakpoints Ctrl + Shift + B
Global display Ctrl + d
Global run last started Ctrl + F11
Run Ctrl + R globally
Execute Ctrl + u globally

Reconstruction
Shortcut for scope Function
Global undo reconstruction Alt + Shift + z
Global extraction method Alt + Shift + m
Global extraction of local variables Alt + Shift + L
Global inline Alt + Shift + I
Move Alt + Shift + V globally
Globally rename Alt + Shift + R
Global redo Alt + Shift + Y

How to remove the comments in the catch code block generated by ECLIPSE
Other comments of the code generated by ECLIPSE make it unavailable when I set the code in "Preferences", but I will not remove the comments in the generated catch code block. How can I solve this problem, thank you.
There is a try in Java --- editor -- templates in Eclipse project options. You will know what is going on.
You can remove the comments and the comments will not be displayed.

(1) Ctrl + Space
Description: Content assistant. Provides prompts for methods, variables, parameters, and javadoc,
Should be carried in a variety of occasions, in short, you need to prompt the first press this shortcut key.
Note: do not conflict with the input method switching settings.

(2) Ctrl + Shift + Space
Note: Variable prompt
(3) Ctrl +/
Note: Add/Remove // annotation. In eclipse2.0, the annotation for elimination is Ctrl +/

(4) Ctrl + Shift +/
Note: Add/**/comment

(5) Ctrl + Shift +/
Note: delete/**/comment

(6) Ctrl + Shift + F
Note: The code is automatically formatted.

(7) Ctrl + 1
Note: you can modify variable names in source code in batches and use them on catch blocks.

(8) ctril + F6
Note: interface switching

(9) ctril + Shift + m
Note: Find the desired package

(10) ctril + Shift + O
Note: The required package is automatically introduced.

(11) CTRL + ALT + S
Note: Quick menu for source code. Generate getters and setters and surround with try/catch
Block is commonly used. We recommend that you add them as shortcut keys. You can set the shortcut keys on Windows> preferences> workbench> keys.

2. Shortcut Key List

Edit
Shortcut for scope Function
Globally search and replace Ctrl + F
Search for the previous Ctrl + Shift + K in the text editor
Search for the Next Ctrl + K in the text editor
Globally undo Ctrl + z
Global copy Ctrl + c
Select Alt + Shift + continue for global recovery.
Globally cut Ctrl + x
Global quick correction ctrl1 + 1
Global content assist Alt +/
Globally select Ctrl +
Delete globally
Global context information Alt +? Alt + Shift +? CTRL + Shift + Space
Java editor display tooltip description F2
Java editor selects the encapsulation element Alt + Shift + Transform
Java editor selects the previous element Alt + Shift + ↓
Select the next element Alt + Shift + →
Text Editor incremental search Ctrl + J
Text Editor incremental reverse lookup Ctrl + Shift + J
Globally paste Ctrl + V
Global redo Ctrl + Y

View
Shortcut for scope Function
Zoom in globally Ctrl + =
CTRL +-

Window
Shortcut for scope Function
Global activation editor F12
Global switch editor Ctrl + Shift + W
Global editor Ctrl + Shift + F6
Global View Ctrl + Shift + F7
Global Perspective Ctrl + Shift + F8
The next global editor Ctrl + F6
Next Global View Ctrl + F7
CTRL + F8
Text Editor display ruler context menu Ctrl + W
Global View menu Ctrl + F10
Global display of System Menu Alt +-

Navigation
Shortcut for scope Function
Open the structure Ctrl + F3 in the Java editor.
Global Open type ctrl + Shift + T
Global Open Type hierarchy F4
Global open declaration F3
Open external javadoc SHIFT + F2 globally
Globally open resource Ctrl + Shift + R
Global rollback history Alt + rollback
Global forward history Alt + →
CTRL +,
CTRL +.
Java editor display outline Ctrl + O
Globally open the type ctrl + Shift + H in the hierarchy
Globally move to matching parentheses Ctrl + Shift + P
Go global to the previous editing location Ctrl + q
Go to the previous Member Ctrl + Shift + ← in the Java editor.
Go to the next member in the Java editor Ctrl + Shift + ←
Text Editor to Ctrl + L

Search
Shortcut for scope Function
Globally displayed in the file Ctrl + Shift + u
Global Search dialog box Ctrl + H
Declare Ctrl + G in the global Workspace
Reference Ctrl + Shift + G in the global Workspace

Text editing
Shortcut for scope Function
Text Editor rewrite switch insert
CTRL + ← on the text editor
CTRL + ←

File
Shortcut for scope Function
Save Ctrl + x Ctrl + S globally
Print Ctrl + P globally
Globally Disable Ctrl + F4
Globally save Ctrl + Shift + S
Globally Disable Ctrl + Shift + F4
Global attribute Alt + enter
Globally create Ctrl + n

Project
Shortcut for scope Function
Global build Ctrl + B

Source code
Shortcut for scope Function
Java editor format Ctrl + Shift + F
Java editor uncomment Ctrl +/
Java editor comment Ctrl +/
Add and import Ctrl + Shift + M to the Java Editor
Java editor organization import Ctrl + Shift + O
The Java editor uses try/catch blocks to enclose unset ones, which is too common. Therefore, we recommend that you set them here.
You can also use Ctrl + 1 for automatic correction.

Run
Shortcut for scope Function
F7 is returned in one global step.
Skip F6 in one global step
Global One-Step Jump to F5
Global One-Step Jump-in and select Ctrl + F5
Global debugging last started F11
Continue F8 globally
Shift + F5 in one step using filters globally
Globally Add/remove breakpoints Ctrl + Shift + B
Global display Ctrl + d
Global run last started Ctrl + F11
Run Ctrl + R globally
Execute Ctrl + u globally

Reconstruction
Shortcut for scope Function
Global undo reconstruction Alt + Shift + z
Global extraction method Alt + Shift + m
Global extraction of local variables Alt + Shift + L
Global inline Alt + Shift + I
Move Alt + Shift + V globally
Globally rename Alt + Shift + R
Global redo Alt + Shift + Y

How to remove the comments in the catch code block generated by ECLIPSE
Other comments of the code generated by ECLIPSE make it unavailable when I set the code in "Preferences", but I will not remove the comments in the generated catch code block. How can I solve this problem, thank you.
There is a try in Java --- editor -- templates in Eclipse project options. You will know what is going on.
You can remove the comments and the comments will not be displayed.

Related Article

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.