11

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

sina72
  • 4,931
  • 3
  • 35
  • 36
Chazz
  • 186
  • 1
  • 8
  • 1
    I was actually talking about text searches and not file search. Well I know ctrl+shift+f does the job but this plugin that I mentioned is more superior than that. Please visit link. Thanks. – Chazz Dec 18 '14 at 04:32

5 Answers5

2

You can use shortcut key: Shift+Shift. You have to press double shift button

sina72
  • 4,931
  • 3
  • 35
  • 36
Dat Nguyen
  • 1,881
  • 17
  • 36
  • 2
    Sorry. I think Ctrl + Shift + F is suitable for your idea – Dat Nguyen Dec 18 '14 at 04:38
  • 3
    Well I think that's the closest I can really get. The Eclipse counterpart of that is Ctrl + H but it's slow while this plugin I'm talking about, the quick search, is very fast in searching it can be used in navigating files provided that you can recall a unique text in it. It doesn't show a progress dialog box. It just lists all closest occurences one after another until it lists all possible occurences. – Chazz Dec 18 '14 at 04:47
2

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

Paul Thompson
  • 3,290
  • 2
  • 31
  • 39
  • 2
    Do any of these actually search the contents of the source code? For example, if I've defined the variable: `private String hello = "Hello world!"` I can find this exact line of could by opening the STS quick search and typing `ello w`. IntelliJ does not seem to have this level of search or maybe I just don't have it configured right... – IcedDante Feb 02 '16 at 22:56
2

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)

NealeU
  • 1,264
  • 11
  • 23
  • This is as close as we get. I honestly prefer SSTS to IntelliJ and this is a big reason why (but I'm forced to use the latter because of lackluster support for Grails) – IcedDante Oct 22 '16 at 22:13
0

"Find in Path" is probably what you're looking for. It is probably bound to ctrl+shift+f or cmd+shift+f, depending on your key bindings and whether you are on Mac / Windows / or Linux. It can also be found under the "Edit", "Find" menu.

sina72
  • 4,931
  • 3
  • 35
  • 36
Snack Cake
  • 186
  • 6
0

The thing that makes quick search in eclipse so awesome is the snappy as-you-type result feedback.

You can get this in intellij w/ ctrl+shift+f or cmd+shift+f as others mentioned, but to truly emulate the eclipse quick search plugin you will want to switch to the Preview tab (in version 15, anyway).

Bob B
  • 4,484
  • 3
  • 24
  • 32