Skip to content

aryeh/vscode-copy-without-indent

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published