VS 2008 Code Snippet Indentation

Posted by Daniel on Stack Overflow See other posts from Stack Overflow or by Daniel
Published on 2010-02-03T00:22:26Z Indexed on 2010/06/03 21:44 UTC
Read the original article Hit count: 205

Filed under:
|

In VS 2008, there are XML code snippets that seem to be pretty awesome :) However, it seems that the snippets we created do not indent properly. For example if we have the following code:

{
   ...
   { 
   ...
       {
          InsertSnippet here.

We get something like:

{
   ...
   { 
   ...
       {
          FirstLineofSnippet
SecondLineOfSnippet
ThirdLineOfSnippet

Is there any way to make it so that all lines keep the same indentation?

© Stack Overflow or respective owner

Related posts about visual-studio

Related posts about snippets