Visual Studio Workflow - Codesnippets

Print
User Rating:  / 0
PoorBest 
Category: Visual Studio
Created on Thursday, 30 June 2011 Published Date Written by MindYourByte

deDieser Beitrag steht auch in Deutsch zur Verfügung, schaue ihn dir hier an!

In Visual Studio via IntelliSense are already many Codesnippets implemented read for use! For Example for loop, Classes, if and so on...

You can recognize them at their following Symbol:

alt

You can use them whether you selected it in the selection list of IntelliSense (the Drop-Down menu) by Mouse or Keyboard and then Clock on it or pressing Tab twice. Now the template Code gets generated.

alt

Now you're in the Edit-Mode of the Snippet. Here you can rename the yellow backlighted variables. More instances of the same variable (grey backlighted) get automatic edited when you change the yellow instance. Switching between different variables can be achieved by simply pressing tab. If you're finished editing the variables you can confirm the entered names by pressing enter. The cursor jumps now inside the curly brackets.

Benefit: Generate Code without any Syntax-Errors (e.g. forgetting Brackets, semicolons)

Define Code Snippets yourself.

There's a way to generate Snippets yourself. These are written in XML. The Manager can be found in Tools -> Code Snippet Manager

Tip: The Snippet Editor helps you create Code Snippets easily.

mfG Marvin Pohl aka MindYourByte

Copyright 2011. Joomla 1.7 templates free.
Valid XHTML 1.0