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

Multi-cursor pastes in reverse order #2205

Closed
paustint opened this issue Jan 24, 2016 · 4 comments
Closed

Multi-cursor pastes in reverse order #2205

paustint opened this issue Jan 24, 2016 · 4 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug verified Verification succeeded
Milestone

Comments

@paustint
Copy link

When using the multi-cursor mode, when pasting from the clipboard the results are sometimes in reverse order. The order of the data should be retained and not reversed.

Steps to reproduce (windows default key bindings)

  1. alt+click on two or more places and hold shift (or ctrl+shift) and use the arrow keys to select some text.
  2. ctrl+c to copy text
  3. alt+click on the same number of lines as are copied on the clipboard where the pasted data should be placed
  4. past data, notice that the results are in reverse order
var dataload;
var apiLogs;
var tenant;

Pasting the results in the data in the wrong order as follows:

var dataload = api;
var apiLogs = tenant;
var tenant = apiLogs;
var api = dataload;
@paustint
Copy link
Author

I realized after posting this that the paste order is driven by the order that the new cursors are created. This behavior differs from the standards of other applications and is an annoyance. I would like to confirm if this behavior is a bug or if it is working as designed.

@alexdima alexdima added the bug Issue identified by VS Code Team member as probable bug label Jan 25, 2016
@paustint
Copy link
Author

With more prototyping I have found when this really becomes an issue:

If there is a list of items and the cursor is on the bottom item and ctrl + alt + up is pressed to increase the cursors, then if text is copy and pasted it is pasted in reverse order.

@alexdima alexdima added this to the Feb 2016 milestone Jan 29, 2016
@alexdima alexdima assigned isidorn and unassigned alexdima Feb 26, 2016
@isidorn isidorn added the verified Verification succeeded label Feb 26, 2016
@RobBiddle
Copy link

I'm having this problem still with the latest VSCode 1.9.0

Copying from VSCode to a PowerShell console on Windows 10 [Version 10.0.14393] inverts the order of multi-line code.

If I paste into SublimeText first and copy the code again then the past order is corrected. However, if I use Notepad as the intermediary the problem persists.

@isidorn
Copy link
Contributor

isidorn commented Feb 2, 2017

@RobBiddle please create a new issue as this one is outdated and close. From that issue link back to this one and try to give exact reproducable steps. Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

4 participants