We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.

How to: Insert IntelliSense Code Snippets

You can insert IntelliSense Code Snippets using the Code Snippet Picker or typing the shortcut name of the snippet and pressing Tab.


In Visual Basic projects, you can type the first few letters of the shortcut name followed by a question mark (?), and press TAB to see a list of all snippet shortcuts that begin with those letters.


In Visual C# projects, code snippet shortcut names appear in the IntelliSense list box.

Each Visual Studio language has slight differences in the way you insert code snippets. For information on inserting snippets in Visual Basic, see How to: Insert Snippets Into Your Code (Visual Basic). For information on inserting snippets in Visual J# and Visual C#, see How to: Use Code Snippets (C#).