Are there any good ways to copy code from Visual Studio that keeps the code neat looking? I have two main concerns that are large enough for me to raise this question:
- When copying multiple lines of code from a nested code block, the leading whitespace on every line should be removed. This one is easy to fix manually though, by simply using shift + tab until it aligns as it should. Still something I'd like to avoid though.
- More importantly, however, is when copying from code where the setting "replace with tabs" is used, the indetions will be huge when copied to e.g. Notepad, making the code practically unreadable.
I'm hoping for a one-click solution here, be it an Add In or Macro, that does not matter, as long as I can select a block of code, and then copy it with one click, and have it look well when I paste it somewhere else.