当前位置:网站首页>Idea shortcut keys

Idea shortcut keys

2022-07-07 10:53:00 aabond

One 、IDEA Common shortcut key

It can be done by IDEA menu bar Help -> Keymap Reference see

IDEA_KEYMAP

Two 、 View shortcut key functions and modifications

Find_Keymap

3、 ... and 、 Common shortcut key

Here are the shortcuts I will use in my work and study

notes : The following shortcut keys are followed by * Indicates that it is very common

3.1 ALT

Shortcut key meaning
ALT + 7 Display the current class structure
ALT + Delete Safe deletion
ALT + Enter* Display the list of intelligent operations
ALT + F1 Select the current class to display it in multiple views
ALT + F7 view classes / Method / attribute / Usage of parameters
ALT + Insert* Generate get/set/toString Etc
ALT + Q Display context information , Class name information is displayed in the class file

3.2 ALT + SHIFT

Shortcut key meaning
ALT + SHIFT + ↑* Move the selected code up
ALT + SHIFT + ↓* Move the selected code down
ALT + SHIFT + F Add to Favorites

3.3 CTRL

Shortcut key meaning
CTRL + A* Future generations
CTRL + B / CTRL + LEFT* Jump to class / Method / Attribute definitions
CTRL + C* Copy
CTRL + D Copy the current row or selected block
CTRL + E* Show a list of recently opened files
CTRL + F* Find the current page
CTRL + G The current page jumps to a certain line
CTRL + H Display the current cursor selection class inheritance relationship
CTRL + I Methods that implement parent classes or interfaces
CTRL + J Select code template insert
CTRL + K Submit git
CTRL + L After search , Find the next one
CTRL + M Scroll to the center of the page on the line of the current mouse
CTRL + N* Find the class
CTRL + O* Select the method in the parent class or interface to implement ( Than Ctrl + I More , This contains ancestor classes )
CTRL + P Display the parameter information of the method
CTRL + Q Document information of the display method
CTRL + R Replace the current page
CTRL + S preservation
CTRL + Tgit Update project
CTRL + U Jump to the parent class or interface of the current class
CTRL + V* Paste
CTRL + W Expand mouse selection
CTRL + X* shear
CTRL + Y Delete row
CTRL + Z* revoke
CTRL + BackSpace Delete the cursor to select the front part of the word
CTRL + Delete Delete the cursor to select the part after the word
CTRL + End Jump to the end of the file
CTRL + Enter Split line , Move the back part of the cursor down to a line
CTRL + F1 Display specific information about the error or warning
CTRL + F2 Stopped program
CTRL + F4 Close the current edit file
CTRL + F6 Modify method signature
CTRL + F7 Where the cursor is 、 attribute 、 Parameters , Jump from the current file declaration location to the use location
CTRL + F8 Breaking point
CTRL + F9 compile
CTRL + F11 Use bookmark function , Mark the line of code where the cursor is located as a bookmark
CTRL + F12 List all methods and properties in the class
CTRL + HOME Jump to the file header
CTRL + TAB Jump to the recently opened file
CTRL + [ Move the cursor to the {
CTRL + ] Move the cursor to the }
CTRL + /* Comment on the current line of code , If it has been commented, cancel

3.4 CTRL + SHIFT

Shortcut key meaning
CTRL + SHIFT + Enter by if Add braces to the statement
CTRL + SHIFT + F* Powerful search
CTRL + SHIFT + F7 Highlight the cursor to select objects using
CTRL + SHIFT + I Display method / Definition of attributes
CTRL + SHIFT + N Find files
CTRL + SHIFT + T* Generate test method
CTRL + SHIFT + V From the current buffer Middle stick
CTRL + SHIFT + /* Comment on the current code block , If it has been commented, cancel

3.5 CTRL + ALT

Shortcut key meaning
CTRL + ALT + C* Change the attribute to a constant
CTRL + ALT + IIndent Cursor in line
CTRL + ALT + Ins New file , Class etc.
CTRL + ALT + L* formatting code
CTRL + ALT + O* Optimize , Remove useless import
CTRL + ALT + S Open Settings
CTRL + ALT + T* Select a template to generate code

Four 、 Other

  1. Cancel automatic import *, stay setting->Editor->Code Style->Java->Imports modify
  2. Check the submitter and time of each line of code , Right click on the left side of the row , choice Annotate

5、 ... and 、 Reference resources

  1. IDEA Summary of commonly used shortcut keys
原网站

版权声明
本文为[aabond]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/188/202207070844198389.html