On Fri, 01 Jun 2007 23:59:20 -0700, Rotsey
<ma***********@RemoveThis.optusnet.com.auwrote:
I am using VS2005 with C# and when go to insert a snippet
it is not indenting the code to where my current indent is.
Is this by design or is there a way to have it indent properly???
I have found that usually (maybe always but I haven't figured out for
sure), when there's something that the compiler doesn't like
(extra/missing semicolon, undeclared "using" reference, pretty much
anything that would generate a compilation error), it doesn't mess with
the indentation.
I have also found that once I've fixed the issue, and for some reason
occasionally even if I don't, if I cut and repaste the code just within
the code editor window, VS will get the indentation right the second time
around.
Since I haven't tested that particular issue in a thorough manner, I can't
say for sure what's going on. But you might try doing the cut/paste thing
and see if that helps.
Pete