Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a Quick Search Tool in IntelliJ iDEA?

In STS (Spring Tool Suite) version, We have this quick search plugin (Ctrl+Shift+L) that quickly spawns a dialog box that progressively displays all found occurences of the text provided in the project. Is there such thing in IntelliJ IDEA?

A good description of the plugin can be found here: http://spring.io/blog/2013/07/11/eclipse-quick-search

like image 962
Chazz Avatar asked Dec 17 '14 03:12

Chazz


2 Answers

You can use the following shortcuts for helping you to navigate throughout your code:

Ctrl + N - Search for classes

Ctrl + Shift + N - Search for file name

Ctrl + Shift + Alt + N - Search for symbol name

Using a mixture of those you'll be able to find places in your program.

Ctrl + Shift + F

Allows you to search within the path

Shift + Shift brings up the "Search Anywhere" popup

like image 57
Paul Thompson Avatar answered Oct 01 '22 15:10

Paul Thompson


I want this feature too, and it's not quite there, but could be.

The best you can do is to train your fingers as follows:

  • Ctrl+H
  • type your search text
  • If the preview tab isn't showing, do Ctrl+Page Down

The problem is that you can't open just the file that you want, unless, you type enough that there is only one match which will open if you select:

  • Options: Result options: Skip results tab when only one occurrence is found

This will open the file instead of showing the results

It's also handy to set up File mask(s) to only the files that are relevant to you (for example for me I want results in .ts (for Typescript including TSX, but not .js)

like image 28
NealeU Avatar answered Oct 01 '22 14:10

NealeU