Create a VSCode snippet with support for multiple cursors

Andy Van Slaars
InstructorAndy Van Slaars
Share this video with your friends

Social Share Links

Send Tweet
Published 5 years ago
Updated 4 years ago

VSCode snippets are a great way to add some automation around repetitive coding tasks. They are even more powerful when you take advantage of tab stops and multi-cursor support. In this lesson, we'll create a snippet that supports both, allowing you to insert some boilerplate code with the snippet, then by typing an identifier once, have it show up in 3 places in the code. Finally, with tab stop support, we can make the cursor go to where it's going to be needed next.