Is it possible to insert a multi-line code snippet relative to the cursor position in Visual Studio? -


Visual Studio time in which many rows using this code snippet will be preserved white space on the following lines. The snippet file was set in relation to the original cursor placement relative to the placement.

When you foreach snippet when you use you will find the code like this:

  foreach (collection var item) {} In  

Instead of:

  foreach (var items in the archive) {}  

Is there any way to change this behavior? Is there a keyword that needs to be used in the .snippet file?

is a snippet of code of the file is contained in a Seediattia that protected the white space best The thing I can tell you is to go to the file and edit it according to your needs. Snippet after use code automatically quickly to format your Ctrl + K and Ctrl + D .


Comments