Visual Studio Code Snippets (Beta)

The official repository for the Visual Studio Code Snippets project. The aim of this project is to offer the development community an extensive set of Visual Studio code snippets in a centralized location to help speed up the development process.

Recently uploaded CodeSnippets

class StopwatchAndMemoryLogger 544

C# Fons Sonnemans
Log Duration and Memory usage to the Console

propsemi 1091

C# Fons Sonnemans
Code snippet for semi auto property

Class Program with Main() 1971

C# Fons Sonnemans
Class Program with Main()

propNotifySetProperty 2026

C# Reflection IT
Code snippet for property with SetProperty() from most MVVM toolkits

Grid.RowDefinitions with two RowD... 3507

XAML Fons Sonnemans
XAML snippet for a Grid.RowDefinitions with two RowDefinition objects

Grid.ColumnDefinitions with two C... 3372

XAML Fons Sonnemans
XAML snippet for a Grid.ColumnDefinitions with two ColumnDefinition objects

struct 3666

C# Fons Sonnemans
Code snippet for a readonly struct with the [StructLayout(Auto)] attribute

Notify Property 4548

CSharp mv1986
Property with notify change (C# 5.0).

Notifiable Property with datacont... 4456

CSharp mv1986
Property with notify change (C# 5.0) plus datacontract attribute.

propnotify2 4656

C# Daniel Turan
Code snippet for property using SetProperty method (compatible with Prism.MVVM and others)

Dispose pattern 4832

C# Fons Sonnemans
Code snippet for the dispose pattern

objectcreation 4148

JavaScript Fabian Seiffert
Codeausschnitt für die korrekte Erstellung eines globalen Objektes.

Extension Package

No snippets are added


Languages