Template10: how to install the available snippets in Visual Studio 2015

Snippets are very useful to speed up the code writing. Template10 have defined a lot of them specific for writing code using that template. In the following there are the simple steps you have to do to install them in your Visual Studio.

  1. Download Template10 code from the GitHub repository of the Template10 project. I suggest you to use TortoiseGit client (that can be easily be used also if you have to possibly synchronize branches, even though this is not our case now, because we are going to clone the trunk).

    Clone the Template10 solution

    Clone Template10 solution

  2. Import the snippets available in the Snippets directory of the Template10 solution using the Tools -> Code Snippet Manager. For your convenience, you can first create a specific T10 Snippets folders in both C:\Users\YourName\Documents\Visual Studio 2015\Code Snippets\Visual C#\My Code Snippets\T10 Snippets and C:\Users\YourName\Documents\Visual Studio 2015\Code Snippets\XAML\My XAML Snippets so you can import the snippets, the C# and XAML ones, in that specific directories. All the T10 snippets start with T10, so you can conveniently type that string to let them all be listed: then you can select the desired one and, as usually for snippets, press tab button to make the code be inserted and then possibly be modified.
    Import T10 snippets into Visual Studio 2015

    Import T10 snippets into Visual Studio 2015

     

If you want to create your own snippets you can have a look to Code Snippets and Adding Snippets to Visual Studio Code.

Annunci

Informazioni su Enzo Contini

Electronic engineer
Questa voce è stata pubblicata in Windows, Windows Phone/Mobile. Contrassegna il permalink.

Lascia un Commento/Leave a comment

Inserisci i tuoi dati qui sotto o clicca su un'icona per effettuare l'accesso:

Logo WordPress.com

Stai commentando usando il tuo account WordPress.com. Chiudi sessione / Modifica )

Foto Twitter

Stai commentando usando il tuo account Twitter. Chiudi sessione / Modifica )

Foto di Facebook

Stai commentando usando il tuo account Facebook. Chiudi sessione / Modifica )

Google+ photo

Stai commentando usando il tuo account Google+. Chiudi sessione / Modifica )

Connessione a %s...