IDEA Shortcut Key Daquan and Eclipse Shortcut Key Daquan

A complete list of commonly used shortcut keys in IntelliJ IDEA

basic operation

  • Ctrl + Alt + S: Open the settings window
  • Ctrl + Shift + A: Find action
  • Ctrl + N: Find class files
  • Ctrl + Shift + N: find files
  • Ctrl + F12: Display the structure of the current file (support search and jump)
  • Ctrl + E: Display a list of recently opened files
  • Ctrl + Shift + E: Display a list of recently changed files
  • Ctrl + G: jump to line
  • Ctrl + W: Incrementally select code blocks
  • Ctrl + Shift + W: Decrement selection code block
  • Ctrl + X: Cut the current line or selection
  • Ctrl + C: Copy the current line or selection
  • Ctrl + V: Paste the contents of the clipboard
  • Ctrl + D: Copy the current line or selection and paste it on the next line
  • Ctrl + Y: Delete the current line or selection
  • Ctrl + Z: Undo the last action
  • Ctrl + Shift + Z: redo the last action
  • Ctrl + Shift + U: switch between upper and lower case
  • Ctrl + Shift + J: Merge selected lines (can be used to eliminate spaces)
  • Ctrl + Alt + L: format code
  • Tab: Indent selected lines of code or selected code blocks
  • Shift + Tab: Unindent selected lines of code or selected blocks of code

editor

  • Ctrl + Space: Auto complete code
  • Ctrl + Shift + Space: Autocomplete code based on type
  • Ctrl + Alt + Space: Complete code cell
  • Alt + Enter: Display a list of available actions
  • Ctrl + P: Display method parameter information
  • Ctrl + Q: Show code documentation
  • Ctrl + J: Insert file template
  • Ctrl+Slash (/): Insert or uncomment lines
  • Ctrl+Shift+Slash (/): Insert or uncomment blocks
  • Ctrl + Alt + T: Surround selected lines or blocks of code with code
  • Ctrl + Shift + U: Convert selected text to uppercase or lowercase
  • Ctrl + F: find
  • Ctrl + Shift + F: find and replace
  • Ctrl + Shift + V: paste content from the nearest buffer and select one of them
  • F2: jump to the next highlighted error or warning sign
  • Shift + F2: jump to the previous highlighted error or warning sign

refactor

  • Ctrl + Alt + Shift + T: Refactor the file, organize imports, etc.
  • Ctrl + Alt + N: inline variables
  • Ctrl + Alt + M: Extract method
  • Ctrl + Alt + F: Extract fields
  • Ctrl + Alt + V: extract variable
  • Ctrl + Alt + C: extract constant
  • Ctrl + Alt + P: extract parameters
  • Ctrl + Alt + Shift + J: Merge multiple lines into one logical line

version control

  • Ctrl + K: submit code
  • Ctrl + T: update code
  • Alt + Shift + C: View recent changes
  • Alt + Shift + V: View project version
  • Alt + `: show version controller log

run and debug

  • Ctrl + Shift + R: Run the application
  • Ctrl + Shift + D: Debug application
  • Alt + Shift + F10: select or configure run configuration options
  • Alt + Shift + F9: select or configure debug configuration options


A complete list of shortcut keys commonly used in Eclipse

  • Ctrl + N: Open a new window
  • Ctrl + Shift + T: Quick Find Type
  • Ctrl + Shift + R: Quickly find resources
  • Ctrl + F4: close the editor
  • Ctrl + W: close the current file (if the file has been updated, it will prompt whether to save)
  • Ctrl + S: save the current file
  • Ctrl + Shift + G: Find references to methods or variables
  • Ctrl + D: delete the current line or the selected line
  • Ctrl + /: single-line comment, cancel single-line comment
  • Ctrl + Shift + /: multi-line comment start
  • Ctrl + Shift + \: end of multi-line comment
  • Ctrl + I: format code
  • Ctrl + Shift + F: Organize code formatting
  • F3: jump to definition
  • Alt + ←: Return to the previous editor window
  • Alt + →: return to the next editor window
  • Alt + ↑: Move the cursor to the beginning of the previous line of the current method
  • Alt + ↓: Move the cursor to the beginning of the next line of the current method
  • Ctrl + Shift + O: import missing classes
  • Ctrl + Shift + C: Copy the selection to the clipboard
  • Ctrl + Shift + V: Paste the contents of the clipboard elsewhere
  • Ctrl + Alt + H: Show the caller of the current method
  • Ctrl + F6: Switch to the next editor window
  • Ctrl + Shift + W: close all editor windows
  • Ctrl + Q: Return to the previous editing position
  • Ctrl + Shift + ArrowUp: Move the current line up
  • Ctrl + Shift + ArrowDown: Move the current line down
  • Ctrl + Z: Undo the last action
  • Ctrl + Y: redo the last action
  • Ctrl + Shift + S: Open the Save As window
  • Alt + Shift + V: Show range variables
  • Alt + Shift + R: Rename selected elements
  • Ctrl + Alt + ↑: Copy selected line or code block up
  • Ctrl + Alt + ↓: Copy selected line or code block down

Guess you like

Origin blog.csdn.net/Ascend1977/article/details/131109715