This is the version for Visual Studio 2017 and 2019. The version for Visual Studio 2022 is found here. 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 then paste it into a document in Markdown or other format by one step. FunctionsThis 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. OptionsYou can customize the fixed indent size or other settings from Options. |