Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Copy Selection With Minimal IndentionNew to Visual Studio Code? Get it now.
Copy Selection With Minimal Indention

Copy Selection With Minimal Indention

Andreas Pardeike

|
708 installs
| (0) | Free
This extension copies text and strips common prefixed whitespace from it so you can paste it nicely into a chat/forum
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Copy Selection With Minimal Indention README

Features

This extension allows you to copy part of your source code in a way that allows you to paste it nicely into a chat message or a forum. It will strip away any common prefixed whitespace/characters and works with disjoined selections. Simply use instead of a normal copy selection command.

https://user-images.githubusercontent.com/853584/154353285-8635ec42-b73e-443a-9d91-cee218e1d868.mp4

Release Notes

1.0.2

Updates dependencies and cleaned up unused stuff

1.0.1

Added a second command that surrounds the copied lines with triple backticks and language id

1.0.0

Initial release

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