Skip to content

Handle pasting code from column selection specially #5940

Description

#1515 (comment)

From seva0stapenko


Tried column selection in VSCode 1.0. Well, rectangular selection does work, cutting and pasting back also works, but that's about it.
Cutting and pasting into a different part of the code does not work as expected. Both Notepad++ and VS remember that copied text was a rectangular block and paste it as a rectangular block.
VSCode treats copied block just like a regular text, so pasting it anywhere outside of the current multi-cursor context would create a mess.
It's good that the feature is being worked on, but it's not fully baked yet.


Addition from Henning Dieterichs (@hediet)

This is (still) the current behavior of VS Code. The copied/pasted text matches the selection:

recording

However, the copied/pasted text should match this selection:

recording

See also #43145 for how other editors handle it.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions