I'd like to find all occurrences of a particular string in all the code files of a project of mine. Search/replace panels popping up on Ctrl+F/Ctrl+R don't seem to offer to chose the search domain. Is there such a facility available in IntelliJ Idea?
Asked
Active
Viewed 2.2e+01k times
302
-
how to search for work with regards to starts with , cause am searching for int event = 0 but it shows private int event = 0 – shareef Sep 25 '17 at 12:30
3 Answers
515
Find in Path:
Edit > Find > Find in Path
Ctrl + Shift + F
Documentation: Find the search string in a project.
-
61
-
14
-
34
-
7For Mac, there're 2 keymaps, `Mac OS X 10.5+` and `Mac OS X`. If you use the `10.5+` keymap, then use `command` instead of `ctrl`. – duleshi Apr 06 '16 at 12:17
-
1In recent versions, the name of this keybind has been changed to "Find in files" – nios Aug 17 '21 at 08:51
-
Yes, the keyboard shortcut does depend on your keymap preference setting. Look in the "Edit>Find>Find in files" menu item to find the configured shortcut. – pajato0 Oct 15 '21 at 04:47
29
To clarify, the default Keymap for Find in Path on Mac OS X is also Ctrl + Shift + F

Hanxue
- 12,243
- 18
- 88
- 130
13
For mac users, find in path is: ⌘ + ⇧ + F (Command + Shift + F).

Ivaylo Toskov
- 3,911
- 3
- 32
- 48

Anshu Shekhar
- 331
- 3
- 8