Skip to content
| Marketplace
Sign in
Visual Studio>Tools>Trim Copy 2019
Trim Copy 2019

Trim Copy 2019

emoacht

|
181 installs
| (0) | Free
Copies code block trimming leading white spaces while keeping indentation structure.
Download

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.

Functions

This extension offers two types of copy:

  • Copy (no indent) - Trims all leading while spaces. Suitable for plain text or GitHub Flavored Markdown.
  • Copy (fixed indent) - Adjusts leading while spaces to be the fixed indent size regardless of original size. Suitable for standard Markdown.

The following figure shows the area to be trimmed by red rectangles.

screenshot0.png

You can call these functions from the context menu of text editor.

screenshot1.png

Options

You can customize the fixed indent size or other settings from Options.

screenshot3.png

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft