#development #tools #vscode

Today, I learned how to select a piece of text in VSCode and insert a cursor at the start of every line. This is useful for adding a prefix to every line in a file. I use this a lot when editing Markdown files.

  • Press CTRL/CMD + A to select all of the text
  • Press SHIFT + ALT/OPTION + I to insert multiple cursors at the end of each line
  • Press Home twice to jump to the start of every line