Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Column selection - cannot paste with virtual whitespace #43145

Closed
ArashPartow opened this issue Feb 7, 2018 · 11 comments
Closed

Column selection - cannot paste with virtual whitespace #43145

ArashPartow opened this issue Feb 7, 2018 · 11 comments
Labels
*duplicate Issue identified as a duplicate of another issue(s) editor-columnselect Editor column selection issues feature-request Request for new features or functionality
Milestone

Comments

@ArashPartow
Copy link

ArashPartow commented Feb 7, 2018

I have the following bit of data

col1   col2
aaa    bbbbbbbbb
cccccc ddddd
ee     fffffffffffff
aaa    bbbbbbbbb
cccccc ddddd
ee     ffffffffffffffffff

I would like to be able to select the 2nd column (aka col2) and paste it next to the original col2.

This operation is quite trivial in editors such as Visual Studio, UltraEdit, NotePad++, QtCreator, emacs etc.. The following shows UltraEdit, NotePad++, Visual Studio, QtCreator and Kate column select modes:

vscode_column_select_problem01

msvc

qtcreator

image


However when I try to do it using vscode, I encounter a very non-intuitive outcome:

vscode_column_select_problem02

Is there a plugin or correct way to select a column of text and paste it as-is into a text? (or the same one)


@alexandrudima the Problems and Issues observed:

  1. Holes appear in the selected rectangular area
  2. Rows are selected at different lengths instead of max number of columns
  3. When pasting what has been selected, the result is non-intuitive
  4. Behaviour differs when using keyboard only versus keyboard-mouse combination
@vscodebot vscodebot bot added editor editor-columnselect Editor column selection issues labels Feb 7, 2018
@alexdima alexdima added the feature-request Request for new features or functionality label Mar 1, 2018
@alexdima alexdima changed the title Column select mode problem Column selection - cannot paste with virtual whitespace Mar 1, 2018
@alexdima alexdima removed the editor label Mar 1, 2018
@alexdima alexdima added this to the Backlog milestone Apr 18, 2018
@alexdima alexdima removed their assignment Apr 20, 2018
@phiresky
Copy link

phiresky commented May 4, 2018

Note that you can kind of do this by using column selection (shift+alt drag)

image

then pasting in multi cursor mode
image

(if I'm understanding this issue correctly)

@ArashPartow
Copy link
Author

ArashPartow commented May 4, 2018

@phiresky please review the following section in the issue post: "the Problems and Issues observed:"

Found at the bottom of the issue report - specifically Point 3. What is the norm, or expected
or common sense behaviour would be something like this:

ultraedit_pasted


Note there are numerous problems, such as the editor allowing the user to get into non-intuitive/ridiculous selection modes, not being able to properly align the pasted text, overlapping selects results in the previously selected text to become unselected (holes et al) and many other issues.

@phiresky
Copy link

phiresky commented May 4, 2018

  1. no holes appear for me for your sample as shown in the above screenshots
  2. rows are selected as a block / as expected for me, except when the line length is shorter than the selected block, then it is selected to the end of the line
  3. I don't understand your last screenshot or what you mean by non-intuitive.
  4. not sure what combination you mean since you don't specify what commands you are using

"non-intuitive/ridiculous selection modes" is obviously subjective and thus not a helpful assertion.
"many other issues" isn't helpful either.

pasting N lines in vscode causes them to be spread across the active cursors if the number of cursors is also N.

@ArashPartow
Copy link
Author

@phiresky thank-you for your comments, lets allow the Microsoft guys to resolve this issue.

@gazzar
Copy link

gazzar commented May 19, 2019

This is basically a dupe of #5940

@ArashPartow
Copy link
Author

@gazzar: Just to let you know @alexandrudima was assigned this task - but he seems to have dropped it.

@gazzar
Copy link

gazzar commented May 19, 2019

@ArashPartow Yes, it's mysterious and frustrating. And he was assigned to #73837 a few days ago, so at least one other person in Microsoft is now aware that this fundamental editor feature is still missing from VSCode.

@sandipchitale
Copy link

This extension may help:

https://marketplace.visualstudio.com/items?itemName=sandipchitale.exchange-selection-start-end

@NurjanovUlugbek
Copy link

Please make this feature copy past normally column mode like notepad++ ultraedit

@hediet
Copy link
Member

hediet commented Oct 15, 2021

/duplicate #5940

@github-actions github-actions bot locked and limited conversation to collaborators Nov 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s) editor-columnselect Editor column selection issues feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

8 participants
@gazzar @ArashPartow @phiresky @hediet @sandipchitale @NurjanovUlugbek @alexdima and others