Top => IntelliJ on Windows/Linux
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:
- (Ctrl + Shift + F) - Find in path
- (F3), (Shift + F3) - go to next/previous occurrence
- (Alt + P) - choose "project" as the search path
Steps
- Press (Ctrl + Shift +F) to open the "find in path" dialog.
- Press (Alt + P) to choose "Project" as the search path.
- Enter "method1" as the text to search for.
- Press (Enter)
- Press (F3) to move the cursor to the next occurrence of the text, "method1".
- Press (F3) several more times.
- Press (Shift + F3) several times to navigate backward to each occurrence of "method1".
- Repeat until bored.
Key sequences to practice:
- (Ctrl + Shift + F) - Find in path
- (F3), (Shift + F3) - go to next/previous occurrence
- (Alt + M) - choose "module" as the search path
Steps
- Press (Ctrl + Shift + F)to open the "find in path" dialog.
- Press (Alt + M) to choose "Module" as the search path.
- Enter "method1" as the text to search for.
- Press (Enter)
- Press (F3) to move the cursor to the next occurrence of the test, "method1".
- Press (F3) several more times.
- Press (Shift + F3) several times to navigate backward to each occurrence of "method1".
- Repeat until bored.
Key sequences to practice:
- (Ctrl + Shift + F) - Find in path
- (F3), (Shift + F3) - go to next/previous occurrence
- (Alt + D) - choose "directory" as the search path
Steps
- Press (Ctrl + Shift + F) to open the "find in path" dialog.
- Press (Alt + D) to choose "Directory" as the search path.
- Enter "method1" as the text to search for.
- Press (Enter)
- Press (F3) to move the cursor to the next occurrence of the test, "method1".
- Press (F3) several more times.
- Press (Shift + F3) several times to navigate backward to each occurrence of "method1".
- Repeat until bored.
Key sequences to practice:
- (Ctrl + Shift + F) - Find in path
- (F3), (Shift + F3) - go to next/previous occurrence
- (Alt + S) - choose "scope" as the search path
Steps
- Open two or more Java source files, including LongConditional.java.
- Press (Ctrl + Shift + F) to open the "find in path" dialog.
- Press (Alt + 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 (F3) to move the cursor to the next occurrence of the test, "method1".
- Press (F3) several more times.
- Press (Shift + F3) several times to navigate backward to each occurrence of "method1".
- Repeat until bored.