30

New to Android Studio and I wanted to find all instances of something across all java files. I read that shift+shift would bring up a 'Search Everywhere' box but it doesn't work. You can see from the image below that the text is in the open class and it says 'Nothing Found'. Am I missing something?

Greg enter image description here

Abhishek
  • 6,912
  • 14
  • 59
  • 85
user1091524
  • 865
  • 1
  • 15
  • 28

4 Answers4

66

Try using Ctrl + Shift + F.

You can also try Ctrl + Shift + R.

Abhishek
  • 6,912
  • 14
  • 59
  • 85
user3451261
  • 676
  • 1
  • 7
  • 4
  • 2
    That go it. It is "Find in Path..." on the menu. Didn't make the connection. Still not sure what the shift+shift was doing, but I guess it doesn't matter now. Thanks. – user1091524 Mar 10 '15 at 01:33
  • 2
    The shift+shift lets you search for files (by their file names) in the project for faster switching between files. – Mallock May 27 '16 at 05:53
  • And also functions/variables declarations – Sojtin Sep 16 '16 at 13:49
10

In Android Studio: version-1.3.1 -- for MAC

  1. Do the following for finding anything in the project: command + shift + F

  2. Do the following for finding anything and then Replacing in the project: command + shift + R.

Replace dialog

crusy
  • 1,424
  • 2
  • 25
  • 54
ArunDhwaj IIITH
  • 3,833
  • 1
  • 24
  • 14
0

shift+shift is used for searching Classes, Files, Symbols, Actions[About] but not for searching in source files

To find something in code use

//global
Edit -> Find -> Find in Path...
//or
Command + Shift + F

//local
Edit -> Find -> Find...
//or
Command + F
yoAlex5
  • 29,217
  • 8
  • 193
  • 205
-2

For me I just wanted to find lines where a particular word was used: so for that Shortcut: (Mac: cmnd+F /).

enter image description here

Dharman
  • 30,962
  • 25
  • 85
  • 135