Change repeating sections of code at once with shortcut key
Category: visual-studio-code
By: jeremy-one
1. Select the text you want to change in one you code that there is duplicates of.
2. Press Ctrl+D (Windows/Linux) or Cmd+D (Mac) to add the next section of code selected text to your selection.
3. Repeat Ctrl+D (Windows/Linux) or Cmd+D (Mac) to add more section of code.
4. Once you've selected all sections of code you want to change, simply start typing to replace the selected text with your desired new text.