Create Your Own Visual Studio Code Snippets
Visual Studio Code Snippets are awesome productivity enhancers; I can only imagine how many millions of keystrokes I’ve saved over the years by making a habit out of using them.
Although a lot of common code you use daily might not be available out of the box, adding them yourself is very simple.
Here are some samples for creating
You can save the above as
.snippet files and then import them via
Tools > Code Snippet Manager... > Import... and use them by typing
ck and hitting TAB twice.
So go ahead and create handy ones for things you find yourself typing all the time. You can refer to this MSDN article for more details.
I'm a software consultant, tech lead, servant team lead, C♯ and .NET aficionado, occasional public speaker, gardener, camping enthusiast and certified PSM I based in Brisbane, AU. I'm passionate about making positive impacts through technology, good software craftsmanship practices and effective project management.
Being a consultant exposes me to a wide variety of challenges, both technical and non-technical, and results in diverse and invaluable learning. This blog's main purpose is to serve as a self-reminder of some of those learnings that I've found the time to write down, but if it happens to help you too, that's even better!