Show/Hide Toolbars

XSharp

Visual Studio provides useful code snippets that you can use to quickly and easily generate commonly used code blocks.

To do this, place your cursor just above the final closing brace in the file. A pop-up dialog box appears with information about the code snippet.

Snippets

You can fill in the yellow sections, press tab to switch between these sections.

Snippets 2

You can look at the available code snippets for X# by choosing Edit > IntelliSense > Insert Snippet or right-click > Snippet > Insert Snippet or pressing Ctrl+K, Ctrl+X.

The list includes snippets for creating a class, a constructor, a for loop, an if or switch statement, and more.