Become a member
to unlock all features

Create egghead account to access 5000+ tutorials and resources from expert developers.

Create account

    Create a VSCode snippet with support for multiple cursors

    vscodeVS Code

    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.