'Find All' in Android Studio
Asked Answered
N

4

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

Newfashioned answered 10/3, 2015 at 0:48 Comment(0)
L
66

Try using Ctrl + Shift + F.

You can also try Ctrl + Shift + R.

Lashondalashonde answered 10/3, 2015 at 1:24 Comment(3)
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.Newfashioned
The shift+shift lets you search for files (by their file names) in the project for faster switching between files.Jimmiejimmy
And also functions/variables declarationsLiquidator
H
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

Hadfield answered 24/8, 2015 at 7:3 Comment(0)
J
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
Jevons answered 2/6, 2021 at 11:53 Comment(0)
T
-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

Theo answered 25/8, 2021 at 4:33 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.