This extension copies selected code block to the clipboard trimming leading white spaces while keeping indentation structure. It allows you to copy the code in text editor of Visual Studio, trim unnecessary white spaces and paste it into a document in Markdown or other format by one step.
This extension offers two types of copy.
The following figure shows the area to be trimmed by red rectangles.
You can call these functions from the context menu of text editor.
You can customize the fixed indent size or other settings from Options.