intellij idea shortcut method

1, Ctrl + N category search by name

Equivalent to eclipse the ctrl + shift + R, enter the class name to the class file can be located, as in the idea of ​​the performance of the other part of the same search, search class name can be matched to more parts of what you want to search, and If you can match the class to write their own, matching priority class to write their own, not even write their own class can be searched.

 

2, Ctrl + Shift + N to search for files by file name

Search class with a similar, except that you can match all types of files.

 

3、Ctrl+H

View class inheritance, for example HashMap parent is AbstractMap, there are a lot of sub-categories.

 

4, Ctrl + Alt + B sub-class method implementation See

Ctrl + B can view the parent or the parent method definition, but not as convenient ctrl + left mouse button. But here, Ctrl + B or ctrl + left mouse button can only see the definition of abstract methods put in the Map interface, not what we want, this time Ctrl + Alt + B can view the put method of HashMap.

 

5, Alt + F7 class or method is used to find where

Corresponding to the eclipse ctrl + shif + H, but much faster.

 

6, Ctrl + F / Ctrl + Shift + F Find in accordance with the contents of the text

Equivalent to eclipse the ctrl + H, the speed advantage is more obvious. Which is Ctrl + F to find this page, Ctrl + Shift + F is a global lookup.

 

7, Shift + Shift search for anything

shift + shift very powerful, searchable categories, resources, configuration items, and other methods, but also the search path. Where the search path is useful, for example, you write a function called hello, in java, js, css, jsp hello in both folders, then we can search for "hello /" find the file path contains hello folder.

 

8, see the interface implementation class

IDEA style ctrl + alt + B or Ctrl + Alt + left mouse button

 

9, see the class in all methods

Alt + 7 or Ctrl + F12

 

Reproduced in: https: //www.cnblogs.com/Im-Victor/p/11057213.html

Guess you like

Origin blog.csdn.net/weixin_33782386/article/details/93188004