Practice keyboard shortcuts to find and replace text in various scopes.
When JetBrains products refer to a "path" in this context, they mean a search path. You can search for objects in a Project, Module, Directory, or Scope. In this case scope means a set of objects that have something in common, such as "all open files" or "everything pertaining to test".
Key sequences to practice:
- ⌘⇧F (Command + Shift + F) - open "find in path" dialog
- ⌘G, ⌘⇧G (Command + G), (Command + Shift + G) - go to next and previous occurrences
- ⌥P (Option + P) - choose "project" as the search path
Steps
- Press ⌘⇧F to open the "find in path" dialog.
- Press ⌥P to choose "Project" as the search path.
- Enter "method1" as the text to search for.
- Press ⌅ (Enter)
- Press ⌘G to move the cursor to the next occurrence of the test, "method1".
- Press ⌘G several more times.
- Press ⌘⇧G several times to navigate backward to each occurrence of "method1".
- Repeat until bored.
Key sequences to practice:
- ⌘⇧F
- ⌘G, ⌘⇧G
- ⌥M
Steps
- Press ⌘⇧F to open the "find in path" dialog.
- Press ⌥M to choose "Module" as the search path.
- Enter "method1" as the text to search for.
- Press ⌅ (Enter)
- Press ⌘G to move the cursor to the next occurrence of the test, "method1".
- Press ⌘G several more times.
- Press ⌘⇧G several times to navigate backward to each occurrence of "method1".
- Repeat until bored.
Key sequences to practice:
- ⌘⇧F
- ⌘G, ⌘⇧G
- ⌥D
Steps
- Press ⌘⇧F to open the "find in path" dialog.
- Press ⌥D to choose "Directory" as the search path.
- Enter "method1" as the text to search for.
- Press ⌅ (Enter)
- Press ⌘G to move the cursor to the next occurrence of the test, "method1".
- Press ⌘G several more times.
- Press ⌘⇧G several times to navigate backward to each occurrence of "method1".
- Repeat until bored.
Key sequences to practice:
- ⌘⇧F
- ⌘G, ⌘⇧G
- ⌥S
Steps
- Open two or more Java source files, including LongConditional.java.
- Press ⌘⇧F to open the "find in path" dialog.
- Press ⌥S to choose "Scope" as the search path.
- Choose "Open Files" from the scope drop-down list.
- Enter "method1" as the text to search for.
- Press ⌅ (Enter)
- Press ⌘G to move the cursor to the next occurrence of the test, "method1".
- Press ⌘G several more times.
- Press ⌘⇧G several times to navigate backward to each occurrence of "method1".
- Repeat until bored.