How to search globally in intellij idea

intellij idea is a smart and powerful ide, its search function is much faster than eclipse or myeclipse. It has a variety of search methods, and I will introduce them to you.

How to search globally in intellij idea

Ctrl+N Search for classes by name

  1. 1

    Equivalent to eclipse's ctrl+shift+R, enter the class name to locate the class file

    How to search globally in intellij idea
  2. 2

    Just like the performance of ideas in other search parts, the search class name can also match multiple parts of the content you are searching for

    How to search globally in intellij idea
  3. 3

    Even classes you didn't write yourself can search

    How to search globally in intellij idea
  4. 4

    And if it can match the class written by yourself, it will first match the class written by yourself.

    How to search globally in intellij idea
    END

Ctrl+Shift+N Search files by filename

  1. 1

    Similar to the search class, except that it can match all types of files

    How to search globally in intellij idea
    END

Ctrl+H

  1. 1

    View the inheritance relationship of the class, for example, the parent class of HashMap is AbstractMap, and the subclass has a lot of

    How to search globally in intellij idea
    END

Ctrl+Alt+B View subclass method implementation

  1. 1

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

    How to search globally in intellij idea
    END

Alt+F7 to find where a class or method is used

  1. 1

    Equivalent to eclipse's ctrl+shift+H, but much faster.

    How to search globally in intellij idea
    END

Ctrl+F/Ctrl+Shift+F Search by text content

  1. Equivalent to ctrl+H of eclipse, the speed advantage is more obvious. Where Ctrl+F is to find on this page, Ctrl+Shift+F is to search globally

    How to search globally in intellij idea
    END

Shift+Shift to search for anything

  1. 1

    shift+shift is very powerful, it can search for classes, resources, configuration items, methods, etc., and it can also search for paths. The search path is very practical. For example, if you write a function called hello, and there are hello folders in java, js, css, and jsp, then we can search for "hello/" to find the folder containing hello in the path.

    How to search globally in intellij idea

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325836361&siteId=291194637