Intellij IDEA's shortcut file positioning

xiaoxiao2021-03-06  88

Intellij IDEA supports fast file location, just try the way:

CRTL N: Located to the Java class, default is a Java file in the positioning project. If you set the Source of the development package, you can also locate the Java file outside the project, such as the original file of JDK.

Crtl Shift N: Position to the file, also contains the Java file of the project, other files in all projects, such as XML, JSP, and Poperty files can be used to change mode.

CRTL Alt Shift N: Located to the logo, where the identification is mainly referring to the properties and function names in the Java class. With this method, you can quickly locate the specified properties or function name.

These shortcuts are very convenient for your positioning, but in the positioning, you also need to understand the principle of matching, which is used for any type of position.

1 Fuzzy match, * DAO, you can match any Java class ending with DAO; * .xml, you can match any XML files. * You can match 0 or more letters.

2 Camel Words: If you have a class, such as UserManagerdao, the camel word is UMD, in fact, the uppercase letter in the string so you type UMD, you can locate this class. The function should pay attention to, the function name and the attribute name are generally lowercase. If you use a camel word, you can add *, such as getuername, you can * UNA.

I believe that the positioning file is very easy to pass the above methods. If you are positioned to the specified view in the file editing mode, just press Alt F1, select the view you need to view, it is very fast.

转载请注明原文地址:https://www.9cbs.com/read-105882.html

New Post(0)