Create a VSCode snippet with support for multiple cursors

InstructorAndy Van Slaars

Share this video with your friends

Send Tweet

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.