Idea Shortcut Key Encyclopedia - Classification (Windows)

Auto Code Shortcuts

Ctrl+Alt+O: Optimize imported classes and packages
Alt+Insert: Generate code (such as get, set methods, constructors, etc.) or right click (Generate)
fori/sout/psvm + Tab Ctrl+Alt+T: Generate try catch Or Alt+enter
CTRL+ALT+T: put the selected code in TRY{} IF{} ELSE{}
Ctrl +O: rewrite method
Ctrl+I: implement method
Ctr+shift+U: case conversion
ALT+back Car: import package, automatically correct
ALT+/: code prompt
CTRL+J: automatic code
Ctrl+Shift+J: integrate two lines into one line
CTRL+space: code prompt
CTRL+SHIFT+SPACE: automatically complete code
CTRL+ALT+L: format Code
CTRL+ALT+I: Auto-indent
CTRL+ALT+O: Optimize imported classes and packages
ALT+INSERT: Generate code (such as GET, SET methods, constructors, etc.)
CTRL+E: Recently changed code
CTRL+ ALT+SPACE: class name or interface name prompt
CTRL+P: method parameter prompt
CTRL+Q: you can see the declaration of the current method
Shift+F6: refactoring-renaming (packages, classes, methods, variables, even comments, etc.)
Ctrl+Alt+V : extract variable

Query shortcut key

Ctrl+Shift+Backspace: You can jump to the last edited place
CTRL+ALT+left/right: Navigate forward and backward to the edited place
ALT+7: Display the structure of the current file on the left window
Ctrl+F12: Float to display the structure of the current file
ALT+F7 : Find all references of your function or variable or class
CTRL+ALT+F7 : Find all references of your function or variable or class
Ctrl+Shift+Alt+N: Find the method or variable in the class
Double-click SHIFT: Find files in all directories of the project
Ctrl+N: Find classes
Ctrl+Shift+N: Find files
CTRL+G: Locate the line
CTRL+F: Find text in the current window
CTRL+SHIFT+F: Find text in the specified window
CTRL+R: replace the text in the current window
CTRL+SHIFT+R: replace the text in the specified window
ALT+SHIFT+C: find the modified file
CTRL+E: the recently opened file
F3: find down where the keyword appears
SHIFT+F3 : Go up to the position where a keyword appears
Select the text, press Alt+F3 to highlight the same text, F3 to search down the same text one by one
F4: Find the source of the variable
CTRL+SHIFT+O : Pop up and display the search content
Ctrl+W : Select the code, continue Press
F2 or Shift+F2 for other effects: highlight errors or warnings for quick positioning
Ctrl+Up/Down: The cursor jumps to the first or last line
Ctrl+B: Quickly open the class or method at the cursor
CTRL+ALT+B: Find all subclasses
CTRL+SHIFT+B: Find the class of the variable
Ctrl+Shift+up and down keys to move the code up and down
Ctrl+Alt+left/right: return to the last browsed position
Ctrl+X: delete line
Ctrl+D: copy line
Ctrl+/ or Ctrl+Shift+/ comment (// or /…/)
Ctrl+H: Display the class structure diagram
Ctrl+Q: Display the comment document
Alt+F1: Find the location of the code
Alt+1 Quickly open or hide the engineering panel
Alt+left/right: Switch the code view
ALT+ ↑/↓ Move quickly between methods Locate
CTRL+ALT+left/right: Navigate back and forth to the edited place
Ctrl+Shift+Backspace: You can jump to the last edited place
Alt+6: Find TODO

other shortcut keys

SHIFT+ENTER: Start a new line
CTRL+Z: Reverse (undo)
CTRL+SHIFT+Z: Forward (cancel undo)
CTRL+ALT+F12: Explorer opens folder
ALT+F1: Find the directory where the file is located
SHIFT+ ALT+INSERT: Vertical editing mode
CTRL+F4: Close the current window
Ctrl+Alt+V: Variables can be introduced. For example: new String(); Automatically import variable definitions
Ctrl+~: Quickly switch schemes (menus such as interface appearance, code style, shortcut key mapping, etc.)

Debug shortcut

In fact, the commonly used ones are F8 F7 F9. The most worth mentioning is that Drop Frame can make the code that has been run start again from the beginning.

alt+F8: Select view value when debugging
Alt+Shift+F9: Select Debug
Alt+Shift+F10: Select Run
Ctrl+Shift+F9: Compile
Ctrl+Shift+F8: View breakpoint
F7: Step into
Shift+F7: Smart Step into
Alt+Shift+F7: Force step into
F8: Step over
Shift+F8: Step out
Alt+Shift+F8: Force step over
Alt+F9: Run to the cursor
Ctrl+Alt+F9: Force to run to the cursor
F9 : Resume the program
Alt+F10 : Go to the breakpoint

refactor

Ctrl+Alt+Shift+T: popup refactoring menu
Shift+F6: rename
F6: move
F5: copy
Alt+Delete: safely delete
Ctrl+Alt+N: inline


Shangxuetang brings a brand-new Java300 course to students! Java zero-basic self-study Java must-have high-quality tutorial


The old rules, one click three consecutive times, earn thousands of dollars a day, bookmark and watch again, annual salary is one million!

Guess you like

Origin blog.csdn.net/lghtdw1314/article/details/124476856