Make this input auto-indent properly when copy/pasted

It would be great if auto-indent was smart enough to handle:

  1. No leading whitespace in selection
  2. Extra tabs in the rest of selection

What I get is:

What I want is:

7 Likes

Well, untill they add that.
This will help you out quite a bit:

Only if it’s really good. VS’s auto indention detection is terrible, it’s wrong every time I use it so I’m inclined against this feature.

I’ve had the opposite experience with VS2015. Using C and C# the auto-indent has been consistently good for me, and I love how much the customization in the options. We only get a toggle.