We can't find the internet
Attempting to reconnect
Something went wrong!
Hang in there while we get back on track
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
orCMD + arrow left
twice to jump to the start of every line
If this post was enjoyable or useful for you, please share it! If you have comments, questions, or feedback, you can email my personal email. To get new posts, subscribe use the RSS feed.