From the course: Visual Studio 2019 Essential Training

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Code snippets

Code snippets - Visual Studio Tutorial

From the course: Visual Studio 2019 Essential Training

Start my 1-month free trial

Code snippets

- [Narrator] Snippets are small sections of code that are inserted into your editor by typing the snippet shortcut keyword, and expanding the snippet text into your code. You can see them in the tools menu in the code snippets manager. This shows all the installed snippets. By default, a new install of Visual Studio has the snippet. You can also add snippets by installing custom Visual Studio extensions, that happen to have their own snippets, or you can download snippets from the internet, or you can create your own snippets. And of course if you want to do that, you can use the import button to bring them in. For today we're looking at the default snippets. We can see them based on the language. I see there's a lot of language choices. The two that we'll look at today is CSS and CSharp. We'll start by looking at CSS. These are all of the snippets that are available. When I select one of them, I can see that it's a font-embedding snippet. It is an expansion snippet, which means I…

Contents