IDEA commonly used shortcut keys---continuous accumulation of updates

IDEA’s most commonly used shortcut keys:

effect hot key
Commented code generated //comments Ctrl + /
Comment code block generation /**/comment Ctrl + Shift + /
Quickly correct mistakes alt + Enter
Quickly generate get, set, constructor, toString methods alt + Insert
New line Shift + Enter
Quick format code Ctrl + alt + L
Batch modify variables Ctrl + alt + shift + J
Move lines of code Shift + alt + ↑ or ↓
Delete or cut Ctrl + X
Copy a line of code, select multiple lines to copy Ctrl + D
Recently opened files Ctrl + E
Case switch Ctrl + shift + u
View method documentation Ctrl + Q
View method parameters Ctrl + P
Jump to implementation class Ctrl+ alt +B or ctrl + alt + left mouse button
Inheritance Ctrl + H
Recall previously operated files Ctrl + E
Clear useless guide package Ctrl + alt + o
Fast extraction method shortcut Ctrl + alt + M
surround with select the code and quickly generate surrounding statements for exampletry catch Ctrl + alt +T
Full text replacement can be regular regular matching Ctrl + Shift + R
Display class hierarchy Hierarchyside window Ctrl +H
debug模式Open the Evalate calculation expression window alt + F8
Jump to the last position Ctrl+ alt + ⬅, in the same way ➡ is the reverse usage

Debug:

F8 executes the next line (equivalent to F6 of eclipse)

F7 jumps into the interior (equivalent to eclipse's F5)

F9 continues execution (equivalent to F8 of eclipse)

search for

effect hot key
research all ctrl + shift + f
Full text replacement ctrl + shift + r
Search class ctrl + n
Search anywhere shift + shift

Fast entry

effect hot key
View the quick entry list ctrl + j
foreach loop iter
Normal for loop holes
Loop array itar
Iterator traversal itco for (Iterator iterator = collection.iterator(); iterator.hasNext(); ) { Object next = iterator.next();}
主函数 psvm (public static void main 的首字母)
常量 pfs (public final String)
生成代码块 try/ if / for/ while/ synchronized ctrl + alt + T

不怎么常用的:

Ctrl + alt + Shift + S 打开项目结构

Ctrl + } 或者 Ctrl + { 跳到光标行的花括号匹配的另外一个大括号的位置

Guess you like

Origin blog.csdn.net/qq_41813208/article/details/107075063