Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Copy without indentNew to Visual Studio Code? Get it now.
Copy without indent

Copy without indent

aryeh

|
605 installs
| (1) | Free
Copy lines of text without initial indent
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Copy Without Indent README

Visual Studio Code extension to copy lines of text without the initial indent.

It preserves the indentation of the block, but without the initial indentation.

Therfore, if you had the following json:

demo1

You then highlighted a bunch of lines like:

demo2

And hit Shift+⌘+C or Ctrl+Shift+C and then pasted the clipboard into a new document, it would look like:

demo3

It copies the selected lines (including the initial part of the first line and the full last line), but without the initial indentation.

Features

  • Adds the ability to copy lines/blocks of text without the initial indent, but with all other indentation
  • Accessible from the right-click context menu or these keyboard shortcuts:
    • Linux/Windows: Ctrl+Shift+C
    • Mac: Shift+⌘+C
  • It will ignore initial lines without text

screenshot

Release Notes

0.0.4

  • Add Icon

0.0.3

  • Add better description in README and demo images.
  • Fix to copy full last line, even if it wasn't fully selected.

0.0.2

  • Allow to be used with older versions of vscode

0.0.1

  • Initial release of copy-without-indent
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft