https://github.com/tesar-tech/visualstudiocustomizations
item templates and code snippets
https://github.com/tesar-tech/visualstudiocustomizations
Last synced: 3 months ago
JSON representation
item templates and code snippets
- Host: GitHub
- URL: https://github.com/tesar-tech/visualstudiocustomizations
- Owner: tesar-tech
- License: mit
- Created: 2020-03-04T19:12:31.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-04T19:48:30.000Z (over 6 years ago)
- Last Synced: 2025-01-20T08:50:06.766Z (over 1 year ago)
- Size: 32.2 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Visual Studio Customizations
## Item templates
This is how to create new item template:
- https://docs.microsoft.com/en-us/visualstudio/ide/how-to-create-item-templates?view=vs-2019
- https://www.intertech.com/Blog/creating-visual-studio-project-templates-and-item-templates/
This repo contains item template for view model using mvvm light (`ViewModel.zip` file). It will generate something like this:
``` csharp
using GalaSoft.MvvmLight;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MyNamespace
{
public class MyViewModel : ViewModelBase
{
}
}
```
### How to import template
Open `%USERPROFILE%\Documents\Visual Studio 2019\Templates\ItemTemplates` and paste the zip file. Reopen VS.
### Default templates
For inspiration, default templates are located here: `C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\ItemTemplates\CSharp\Code\1033` (e.g. Class template)