I found this code snippet for INotifyPropertyChanged
But it shows the code like this :
I don't think this can be done with native code snippets feature provided by Visual Studio.
Personally I use Resharper which makes it possible. It can turn code I write like
public string Name { get; set; }
into
private string _name;
public string Name
{
get { return _name; }
set
{
if(value == _name)
return;
_name = value;
OnPropertyChanged("Name");
}
}
It even generates the OnPropertyChanged()
method for you.