Return to the glossary index

Multi-cursor editing is a feature that allows you to modify several parts of the code simultaneously, thus avoiding repetitive edits. This feature offers increased efficiency when editing source files. To access this feature, various key combinations can be used. For example, pressing Alt + arrow keys (Option + up or down arrow on Mac) allows you to move an entire line. Similarly, holding down the Alt key and clicking (Option + click) allows you to insert an additional cursor at the desired location. Furthermore, by combining Shift + Ctrl + Alt + up or down arrow keys (Shift + Option + up or down arrow on Mac), a cursor can be added above or below the current position with each key press.

Another convenient method is to select a word or tag, then use Ctrl + D (Cmd + D on Mac) to place a cursor at the next occurrence of the selection. Similarly, by selecting a word or tag and pressing Ctrl + Shift + L (Cmd + Shift + L on Mac), cursors can be added to all occurrences of the selection in a single operation. Finally, to ignore the next occurrence after selecting one, simply press Ctrl + K followed by Ctrl + D (Cmd + K followed by Cmd + D on Mac). These various methods offer increased flexibility and precision when editing code, thus improving the efficiency of the development process.

Return to the glossary index