java Android: shortcuts to of in eclipse

  • 2020-05-09 19:13:49
  • OfStack

1. Select the area you want to comment, and ctrl+shift+C will add // comments
2. First select the equipment you want to annotate, shit+ctrl+/ will add /* */ annotation
3. To correct the shortcut key format of the command in eclispe, we only need to enter windows - > preference - > General - > key is fine (go)
Supplement: select the area to be annotated, ctrl+/ will add // annotation 2010/09/13
When selected, ctrl+shift+\, uncomment the selected project group

Attached is a list of all the shortcuts in myeclipse:
Ctrl+1 quick fix (classic keyboard shortcuts, enough said)
Ctrl+D: deletes the current row
Ctrl+Alt+↓ copy the current row to the next row (copy growth)
Ctrl+Alt+↑ copy the current row to the previous row (copy growth)
Alt + ↓ the current line interacts with the following line (rare and practical, it can be omitted to cut and paste first)
Alt+↑ current row and top row interactive status (iditabove)
Alt+← previous 1 edits page
Alt+→ the next page to be edited (for the top one, of course)
Alt+Enter displays the properties of the currently selected data (project, or file, or file)
Shift+Enter inserts a blank row 1 below the current row (in this case, the mouse can be at any 1 of the current row, not necessarily at the end)
Shift+Ctrl+Enter inserts a blank line in the current row (same as above)
Locate Ctrl+Q to the location of the last edit
Ctrl+L is positioned in a line (good news for those whose testimonies cross 100)
Ctrl+M maximizes the current Edit or View (press again and vice versa)
Ctrl+/ comment the current line, press again to invalidate the comment
Ctrl+O quickly displays OutLine
Ctrl+T quickly displays the persistent layout of the current class
Ctrl+W closes the current Editer
Ctrl+K refer to the selected Word to quickly locate the next one
Ctrl+E quick display of the current Editer drop-down list (implied in bold if the current page is not displayed)
Ctrl+/ (keypad) folds all the code in the current class
Ctrl+× (keypad) expands all the code in the current class
The code assistant of Ctrl+Space completes the insertion of some codes (but 1 generally has conflicts with the input method, so you can correct the hot key of the input method, or temporarily use Alt+/ to take place)
Ctrl+Shift+E show all View managers currently open (you can choose to close, activate, etc.)
Ctrl + J forward increment search (after pressing Ctrl + J, each letter you enter will be provided with a quick match to locate a word. If not, it will be displayed in stutes line. Idea has been available for one word since two years ago.)
Ctrl+Shift+J reverse increment search
Ctrl+Shift+F4 closes all open Editer
Ctrl+Shift+X changes all the currently selected text to lowercase
Ctrl+Shift+Y changes all the currently selected text to lowercase
Ctrl+Shift+F pattern the current code
Ctrl+Shift+P locate the corresponding tiles (e.g., {}) (the cursor should be inside the tiles when the domain is positioned before and behind, and vice versa)

The following shortcuts are commonly used in refactorings, and I am fond of and commonly used in refactorings.
Alt+Shift+R rename (one of my favorites, Rename of variables and classes in particular, can save a lot of labor than manual methods)
Alt+Shift+M extraction (this is one of the most common ways to refactor, especially for a large chunk of code)
Alt+Shift+C corrects function layout (useful, there are N functions called this method, correct once)
Alt+Shift+L extract local variables (you can directly extract 1 magic number and string into 1 variable, especially when multiple times are called)
Alt+Shift+F changes local variable in Class into field variable
Alt+Shift+I merge variables
Alt+Shift+V move functions and variables (not often used)
Alt+Shift+Z reconstituted regret medicine (Undo)

The editor
Affect the domain function shortcut key
Global lookup and swap Ctrl+F
The text editor looks up 1 Ctrl+Shift+K
The text editor looks for 1 Ctrl+K
Global undo Ctrl+Z
Global copy Ctrl+C
Global restore 1 option Alt+Shift+↓
Global shear Ctrl+X
Global quick correction Ctrl1+1
Global content helps Alt+/
Globally, select Ctrl+A
Globally delete Delete
Global high-low text information Alt+?
Shift Alt + +?
Ctrl+Shift+Space
The Java editor displays an object prompt describing F2
The Java editor selects the encapsulation element Alt+Shift+↑
The Java editor selects the element Alt+Shift+←
The Java editor selects the next element, Alt+Shift+→
Text editor deltas look for Ctrl+J
The text editor delves backwards to find Ctrl+Shift+J
Globally paste Ctrl+V
Global redo Ctrl+Y

To view
Affect the domain function shortcut key
Global magnification Ctrl+=
Global zoom Ctrl+-

window
Affect the domain function shortcut key
Global activation editor F12
Global switch editor Ctrl+Shift+W
Globally 1 editor Ctrl+Shift+F6
1 view on the global Ctrl+Shift+F7
1 perspective on the global Ctrl+Shift+F8
Global 1 editor Ctrl+F6
Global 1 view Ctrl+F7
Globally, 1 perspective Ctrl+F8
The text editor displays the ruler high and low text menu Ctrl+W
Global display view menu Ctrl+F10
Global display system menu Alt+-

navigation
Affect the domain function shortcut key
The Java editor opens the layout Ctrl+F3
Global open type Ctrl+Shift+T
Global open type hierarchy layout F4
Global open declaration F3
Global open external javadoc Shift+F2
Global open data Ctrl+Shift+R
Global retreat recrect record Alt+←
Global progress history record Alt+→
Globally, 1 Ctrl+,
Global 1 Ctrl+.
The Java editor shows the program Ctrl+O
Global opens the type Ctrl+Shift+H in a hierarchical layout
Globally go to the matching parentheses Ctrl+Shift+P
Global transition to the top 1 editor status Ctrl+Q
Java editor goes to 1 member Ctrl+Shift+↑
Java editor goes to the next member Ctrl+Shift+↓
The text editor goes to line Ctrl+L

search
Affect the domain function shortcut key
Globally present Ctrl+Shift+U in the file today
Global open search dialog Ctrl+H
The declaration Ctrl+G in the global workspace
Reference Ctrl+Shift+G in the global workspace

Text editing
Affect the domain function shortcut key
Text editor overwrite toggle Insert
Scroll up Ctrl+↑ on the text editor
Text editor rolls down Ctrl+↓

file
Affect the domain function shortcut key
Global save Ctrl+X
Ctrl+S
Global printing Ctrl+P
Globally closed Ctrl+F4
Globally, save Ctrl+Shift+S
Globally all closed Ctrl+Shift+F4
Global property Alt+Enter
Global new Ctrl+N

project
Affect the domain function shortcut key
Build Ctrl+B globally

The source code
Affect the domain function shortcut key
Java editor layout Ctrl+Shift+F
The Java editor invalidates the comments Ctrl+Java +/
Java editor adds an import of Ctrl+Shift+M
The Java editor organizes the import of Ctrl+Shift+O
The Java editor applies the try/catch block to override the unset, which is too commonly used, so it is listed here. It is recommended to set the Java editor itself.
You can also use Ctrl+1 for active correction.

run
Affect the domain function shortcut key
Global single step returns F7
Global single step skip F6
Global single step into F5
Global single jump select Ctrl+F5
Global debugging started F11 the previous time
Global persistence F8
The global application filter single-step performs Shift+F5
Global add/remove breakpoint Ctrl+Shift+B
Global display Ctrl+D
Global run the previous startup Ctrl+F11
Globally run to row Ctrl+R
Global performance Ctrl+U

refactoring
Affect the domain function shortcut key
Global undo refactoring Alt+Shift+Z
Global extraction method Alt+Shift+M
Global extraction of local variables Alt+Shift+L
Globally inline Alt+Shift+I
Global mobile Alt+Shift+V
Global rename Alt+Shift+R
Global redo Alt+Shift+Y

Related articles: