Edit Text in Multiple Places at Once

How to use multiple cursors to code faster in JetBrains IDEs.

Want to edit the same thing, in multiple places, at once?

Multiple carets to the rescue. Click the first occurrence, then invoke "Add Selection for Next Occurrence" ^G (macOS) / Alt+J (Windows/Linux)for each change. Type the replacement. Press when finished.

Or, all at once by invoking "Select All Occurrences" ⌘⌃G (macOS) / Ctrl+Alt+Shift+J ( Windows/Linux). Then, type the replacement as before.

Works in all languages and IDEs. Other tips:

  • To add or remove multiple carets, you can also press and hold the (macOS) / Alt ( Windows/Linux), then click to add a new caret. You can also make a multiple selection by holding Shift+Alt and dragging the caret.
  • To remove all the carets, press (macOS) / Escape (Windows/Linux).

Related Resources

Rainbow Trail Effects for Godot
Rainbow Trail Effects for Godot
Create a rainbow trail effect for your 2D games using Line2D
Singletons and Autoloads with Godot and C#
Singletons and Autoloads with Godot and C#
We'll walk through how to setup and enable singletons using Godot's autoloads also known as Globals.
Starter Player Controls For 2D Godot Games
Starter Player Controls For 2D Godot Games
We'll walk through simple yet effective starter controls for your 2D Godot games to get your characters up and running.