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

Idea common shortcut keys

2022-06-25 23:55:00 Hadoop_ Liang

Search for anything shift+shift

shift+shift Very powerful , Searchable class 、 resources 、 Configuration item 、 Such method , It can also search the path . The search path is very practical , For example, you wrote a function called hello, stay java,js,css,jsp There are hello Folder , Then we can search for "hello/" Find the path that contains hello Folder .

Follow the text to find

Global search Ctrl+Shift+F

amount to eclipse Of ctrl+H, Speed advantage is more obvious .Ctrl+Shift+F It's a global search .

Press the key combination to find out , It should be in traditional Chinese with input method / The shortcut keys for simplified switching conflict

Modify method 1 : Turn off the shortcut key for switching between complex and simplified input methods

Modify method 2 : modify IDEA Default shortcut

Search on this page Ctrl+F

among Ctrl+F It's on this page

lookup Replace CTRL+R

 

All replacement CTRL+SHIFT+R

 

standard output :sout enter

 

Delete a line : ctrl + y

 

Move a line up and down :Ctrl+Shift+ Up and down keys

 

Automatic implementation of interface methods :ctrl + i

 

Return to the previous view :ctrl + tab

 

Copy one line to the next :Ctrl + D

 

Find the class Ctrl + N

 

View all variables and methods in the class Alt+7

 

Modify the auto prompt shortcut key Alt+C

The original shortcut key Ctrl+ Space , Now add Alt+C For new shortcut keys

Reference resources :https://zhidao.baidu.com/question/1515990561185577100.html

Return to the last edit location ctrl + alt +

 

ctrl+z Recall code

 

ctrl+shift+z Recovery recall code

 

Automatic generation getter/setter Method Alt + Insert

Press Alt + Insert, There are the following Generatte Prompt panel , And then choose Getter and Setter

 

AutoFormat code

Code -> Reformat Code

perhaps

Ctrl + Alt + L

Tips : If pressing the shortcut key is useless , Please check whether other software uses this shortcut key .

Automatically return the fill variable ctrl + alt + v

ctrl + alt + v

notes  Ctrl + /

 

uncomment Ctrl + Shift + /

Ctrl + Shift + /

View the inheritance relationship of the class ctrl+H

ctrl+H

View the location of the class jar package ctrl+N

ctrl+N, The following box will appear , Then enter the class you want to enter , If the class you want to search for is included in jar Inside , You need to check “include non-project classes” Options , Then you can search it out

Remove unused packages Ctrl+Alt+O

Ctrl+Alt+O

Guide pack Alt + Enter

Alt + Enter

exception handling

The mouse cursor points to the abnormal place , Then press Alt + Enter, Then select the exception handling method

Code block Add enclosing statement , for example :try/catch

Ctrl + Alt + t

 

 

 

原网站

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