In &productName;, you can have multiple carets. Having pressed Alt, click the left mouse button at the desired position to set additional cursors in the editor. Alternatively, press Ctrl (Alt on macOS) twice and hold the key, and then press the arrow keys.

You can then press Shift with the left or right arrow keys to select multiple text fragments:

Press &shortcut:EditorEscape; to remove all the additional carets but the most recently added one.