JAVA: IDEA (Idea), Eclipse (eclipse) shortcut keys notes

JAVA: IDEA, eclipse shortcut keys notes

IDEA

Ctrl+Shift + Enter, the statement is complete
"!", the negation is complete, press the "!" key
Ctrl+E when entering the expression , the most recent file
Ctrl+Shift+E, the most recently changed file
Shift+Click, you can close the file
Ctrl+[ OR ], you can go to the beginning and end of the braces
Ctrl+F12, you can display the structure of the current file
Ctrl+F7, you can query the reference of the current element in the current file, and then press F3 to select
Ctrl+N, you can quickly open the class
Ctrl+Shift+N, you can quickly open the file
Alt+Q, you can see the declaration of the current method
Ctrl+P, you can display the parameter information
Ctrl+Shift+Insert, you can select the clipboard content and insert
Alt+Insert, you can generate a constructor /Getter/Setter, etc.
Ctrl+Alt+V can introduce variables. For example: new String(); automatically import variable definition
Ctrl+Alt+T, you can wrap the code in a block, for example: try/catch
Ctrl+Enter, import the package, automatically correct
Ctrl+Alt+L, format code
Ctrl +Alt+I, automatically indent the selected code, this function can also work when editing JSP files
Ctrl+Alt+O, optimize imported classes and packages
Ctrl+R, replace text
Ctrl+F, find text
Ctrl +Shift+Space, automatically complete the code
Ctrl+space, code prompt (conflicts with system input method shortcut keys)
Ctrl+Shift+Alt+N, find methods or variables in the class
Alt+Shift+C, recent changes
Alt+Shift+Up/Down, move up/down One line
Shift+F6, refactoring-rename
Ctrl+X, delete line
Ctrl+D, copy line
Ctrl+/ or Ctrl+Shift+/, comment (//or /**/)
Ctrl+J, automatic code (for example: serr )
Ctrl+Alt+J, surround
Ctrl+H with a dynamic template , display the class structure diagram (class inheritance hierarchy)
Ctrl+Q, display the comment document
Alt+F1, find the location of the code
Alt+1, quickly open or hide the project panel
Ctrl+Alt+left/right, return to the last browsed position
Alt+left/right, switch the code view
Alt+Up/Down, quickly move and position between methods
Ctrl+Shift+Up/Down, move the statement up/down
F2 or Shift+F2, highlight errors or warnings to quickly locate the
Tab. After entering the code label, press Tab to generate code
Ctrl+Shift+F7, highlight all the text, press Esc to highlight and disappear
Alt+F3, search down one by one The same text, and highlight
Ctrl+Up/Down, the cursor will go to the first or last line
Ctrl+B/Ctrl+Click, quickly open the class or method at the cursor (jump to the definition)
Ctrl+Alt+B, jump to the method implementation
Ctrl+Shift+Backspace, jump to the last edited place
Ctrl +O, rewrite method
Ctrl+Alt+Space, automatically complete the class name
Ctrl+Alt+Up/Down, quickly jump to search results
Ctrl+Shift+J, integrate two lines of
Alt+F8, calculate variable values
Ctrl+Shift+V , You can select and insert the recently used clipboard content into the text
Ctrl+Alt+Shift+V, simply paste
Shift+Esc, not only can move the focus to the editor, but also hide the current (or last active) tool window
F12, move the focus from the editor to the recently used tool window
Shift+F1, to open the browser
Ctrl+W of the Java document of the class or method used at the cursor character of the editor , you can select a word, then a statement, then a line and then a function
Ctrl+ Shift+W, deselect the word
Alt+F7 where the cursor is located , find the position of a certain class, method or variable used in the entire project
Ctrl+I, realize the method
Ctrl+Shift+U, convert case
Ctrl+Y, delete the current line

Shift+Enter, insert a new line
psvm/sout, main/System.out.println(); Ctrl+J, view more
Ctrl+Shift+F, global search
Ctrl+F, search /Shift+F3, search upward /F3, search down
Ctrl+Shift+S, advanced search
Ctrl+U, go to the parent category
Ctrl+Alt+S, open the setting dialog box
Alt+Shift+Inert, turn on/off the column selection mode
Ctrl+Alt+Shift+ S, open the current project/module properties
Ctrl+G, locate the line
Alt+Home, jump to the navigation bar
Ctrl+Enter, insert a line
Ctrl+Backspace, press the word to delete
Ctrl+"+/-", the current method expands and collapses
Ctrl +Shift+"+/-", all expand and collapse
[debugging part, compile]
Ctrl+F2, stop
Alt+Shift+F9, select Debug
Alt+Shift+F10, select Run
Ctrl+Shift+F9, compile
Ctrl+Shift+ F10, run
Ctrl+Shift+F8, check breakpoint
F8, step over
F7, step into
Shift+F7, intelligently step into
Shift+F8, step out of
Alt+Shift+F8, force step over
Alt+Shift+F7, force step into
Alt+F9, run to cursor
Ctrl+Alt+F9, force run to cursor
F9, restore program
Alt+F10, locate to breakpoint
Ctrl+F8, switch line breakpoint
Ctrl+ F9, generate project
Alt+1, project
Alt+2, favorite
Alt+6, TODO
Alt+7, structure
Ctrl+Shift+C, copy path
Ctrl+Alt+Shift+C, copy reference, must select class name
Ctrl+Alt +Y, synchronous
Ctrl+~, fast switching scheme (menus such as interface appearance, code style, shortcut key mapping, etc.)
Shift+F12, restore the default layout
Ctrl+Shift+F12, hide/restore all windows
Ctrl+F4, close
Ctrl+Shift+ F4, close the active tab
Ctrl+Tab, go to the next splitter
Ctrl+Shift+Tab, go to the previous splitter
[Refactoring]
Ctrl+Alt+Shift+T, pop up the reconstruction menu
Shift+F6, Rename
F6, move
F5, copy
Alt+Delete, safely delete
Ctrl+Alt+N, inline
[Find]
Ctrl+F, find
Ctrl+R, replace
F3, find the next
Shift+F3, find the previous
Ctrl+Shift+F, find
Ctrl+Shift+R in the path, replace
Ctrl+Shift+S in the path , search the structure
Ctrl+Shift+M , Replace structure
Alt+F7, find usage
Ctrl+Alt+F7, display usage
Ctrl+F7, find usage
Ctrl+Shift+F7 in the file, highlight usage in the file

For more reference, you can take a look at this: https://blog.csdn.net/qq_38963960/article/details/89552704


Eclipse

  1. Shortcut key output in eclipse System.out.println(""...is to hit sysout or syso +Alt + / activation key,
    eclipse default is sysout or syso plus Alt + / to output

eclipse shortcut keys Daquan Shen Jing.!
eclipse shortcut keys Daquan

  1. Commonly used shortcut keys
    (1) Ctrl+Space
    Description: Content Assistant. Provide prompts for methods, variables, parameters, javadoc, etc. It should be used in many occasions. In short, you can press this shortcut first when you need to prompt.
    Note: Avoid the conflict between the switch setting of the input method and this setting
    (2) Ctrl+Shift+Space
    description: variable prompt
    (3) Ctrl+/
    description: add/delete//comment, in eclipse2.0, delete comment is Ctrl+\
    ( 4)Ctrl+Shift+/
    Description: Add /* /Comment
    (5)Ctrl+Shift+\
    Description: Eliminate/
    */Comment
    (6)Ctrl+Shift+F
    Description: Auto format code
    (7)Ctrl+1
    Description: Batch Modify the variable name in the source code, and it can also be used on the catch block.
    (8) Ctril+F6
    description: interface switch
    (9) Ctril+Shift+M
    description: find the required package
    (10) Ctril+Shift+O
    description : Automatically import the required packages
    (11) Ctrl+Alt+S
    Description: The source code has a shortcut menu. Among them, Generate getters and setters and Surround with try/catch
    Blocks are commonly used. It is recommended to add them as shortcut keys. The shortcut keys are set in windows->preferences->Workbench->Keys
  2. Shortcut key list
    Edit
    Scope function shortcut keys
    Global search and replace Ctrl+F
    text editor find the previous Ctrl+Shift+K
    text editor find the next Ctrl+K
    global undo Ctrl+Z
    global copy Ctrl+C
    global restore the previous Select Alt+Shift+↓
    Global Cut Ctrl+X
    Global Quick Fix Ctrl1+1
    Global Content Assist Alt+/
    Global All Select Ctrl+A
    Global Delete
    Global Context Information Alt+? Alt+Shift+?Ctrl+Shift+Space
    Java editor displays tooltip description F2
    Java editor selects package element Alt+Shift+↑
    Java editor selects the previous element Alt+Shift+←
    Java editor selects the next element Alt+Shift+→
    text Editor incremental search Ctrl+J
    Text editor incremental reverse search Ctrl+Shift+J
    Global paste Ctrl+V
    Global redo Ctrl+Y
    View
    scope function shortcut
    Global zoom in Ctrl+=
    Global zoom out Ctrl±
    Window
    scope function shortcut key
    Global activation editor F12
    Global switch editor Ctrl+Shift+W
    Global previous editor Ctrl+Shift+F6
    Global previous view Ctrl+Shift+F7
    Global previous perspective Ctrl+Shift+F8
    Global next editor Ctrl+ F6
    Global Next View Ctrl+F7
    Global Next Perspective Ctrl+F8
    Text Editor Display Ruler Context Menu Ctrl+W
    Global Display View Menu Ctrl+F10
    Global Display System Menu Alt±
    Navigation
    Scope Function Shortcut
    Java Editor Open Structure Ctrl+F3
    Global Open Type Ctrl+Shift+T
    Global Open Type Hierarchy F4
    Global Open Statement F3
    Global Open External Javadoc Shift+F2
    Global Open Resource Ctrl+Shift+R
    Global Back History Alt+←
    Global Forward History Alt+→
    Global Up One Ctrl+, the
    next Ctrl+ globally.
    Java editor displays the outline Ctrl+O
    Globally opens in the hierarchy type Ctrl+Shift+H
    Globally goes to the matching bracket Ctrl+Shift+P
    Globally goes to the previous editing position Ctrl+Q
    Java editor to go to the previous member Ctrl+Shift+↑
    Java editor to go to the next member Ctrl+Shift+↓
    Text editor to go to line Ctrl+L to
    search
    Scope function shortcut keys
    Globally appear in the file Ctrl+Shift+U
    Globally open Search dialog box Ctrl+H
    Statement in the global workspace Ctrl+G
    Reference in the global workspace Ctrl+Shift+G
    Text editing
    Scope function shortcuts
    Text editor rewrite switch Insert
    text editor scroll up Ctrl+↑
    text editor Scroll down Ctrl+↓
    File
    Scope function shortcut keys
    Global save Ctrl+X Ctrl+S
    Global print Ctrl+P
    Global close Ctrl+F

Original link: https://blog.csdn.net/voiceofnet/article/details/6675067


Guess you like

Origin blog.csdn.net/DAurora/article/details/109036587