Custom code snippets for VisualStudio
- Download source.
- Select snippet(s) you want to use.
- Copy the chosen snippet(s) into ~/Library/VisualStudio/7.0/Snippets/ (the folder is hidden by default, so either open in from terminal or make hidden files visible (see at the end of this readme how to).
- Use it ;-)
In my case snippets are in folder 7.0 but it might change during
Snippets in:
In here you will find my snippets for Visual Studio for Mac. The name of the snippet is the shortcut in VS for Mac.
Creates public MVVM property with Get, Set, and OnPropertyChanged(nameof(Test))
Creates public command property with a associated private command
Generates regions in class for: fields, properties, constructor(s), methods
Creates empty template for a MVVM view. With regions, overrides and injected viewmodel.
Creates public property ViewModel with get method which returns BindingContext as ViewModel
Shortcut: regions
Generates regions in class for: fields, properties, constructor(s), methods
Shorcut: mview
Generates code for view in MVVM with constructor and propertie for ViewModel. Also adds regions
Show hidden files in Finder
- Open terminal,
- Type
defaults write com.apple.finder AppleShowAllFiles YES
and press Enter - Make sure you don't have any thing important open in Finder - we need to restart it.
- Type
sudo killall Finder
- Boom the Finders got closed! - Enjoy your hidden files visible