Select all occurrences in a file
Quickly select all occurrences of a piece of text in the current file
Do you want to select all the occurrences of a piece of code?
How to use:
Press ⌘⌃G (macOS) / Ctrl+Alt+Shift+J (Windows/Linux).
After the selection is complete, you can start editing all the fragments as if they were all the same one.
Pro tip:
If you plan to use this feature to rename something, then you should have a look at our Rename refactoring, which is designed to work safely across multiple packages, not just at the file level, with full preview and undo support.