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

maintain cursor position when copying lines using ctrl+c, ctrl+v #40695

Closed
midgithub opened this issue Dec 22, 2017 · 6 comments
Closed

maintain cursor position when copying lines using ctrl+c, ctrl+v #40695

midgithub opened this issue Dec 22, 2017 · 6 comments
Assignees
Labels
editor-clipboard Editor clipboard issues feature-request Request for new features or functionality verified Verification succeeded
Milestone

Comments

@midgithub
Copy link

midgithub commented Dec 22, 2017

now press "ctrl+c" to copy line .the cursor will change to the beginning of the line. change to the end or remember the position of when press the hot key


EDIT Taken from #70333

Copy Line Down (Shift + Alt + DownArrow) maintains cursor position. That's great.

However, copying a line using ctrl+c and ctrl+v (when there is no selection) places the cursor at the beginning of the copied line.

The cursor placement behavior should be consistent between the two methods of copying a line. The cursor position should be maintained in both cases.

@vscodebot vscodebot bot added editor editor-core Editor basic functionality labels Dec 22, 2017
@weinand
Copy link
Contributor

weinand commented Dec 22, 2017

I don't understand you. What do you mean by "hot key"?

I suggest that you first explain the current situation/problem and then clearly explain the proposed improvement.

@weinand weinand added the info-needed Issue requires more information from poster label Dec 22, 2017
@midgithub
Copy link
Author

now:
0. cursor in a line without any selection.

  1. press "ctrl+c" to copy the line of the cursor exist.
  2. paste the new line in other place.
  3. the cursor will at the beginning of new line.
    wanted:
    the cursor in the end of the new line. or keep the same place when press "ctrl+c".

thanks a lots. and sorry for my poor description .

@alexdima alexdima added feature-request Request for new features or functionality editor-clipboard Editor clipboard issues and removed info-needed Issue requires more information from poster editor editor-core Editor basic functionality labels Feb 2, 2018
@alexdima alexdima added this to the Backlog milestone Feb 5, 2018
@alexdima alexdima removed their assignment Feb 5, 2018
@cpmcgrath
Copy link

cpmcgrath commented Feb 6, 2018

The Description is a bit misleading, it implies it happens on Line Copy.
The behaviour occurs on Line Paste, Line Cut and Line Delete.
It should remember your caret position.

@MrNagoo
Copy link

MrNagoo commented Mar 21, 2018

Is there any info about this? If I triple click a line, the cursor moves to the next line. I don't want to copy newlines. It's very annoying.

@cpmcgrath
Copy link

Can the title and original description be updated to be more accurate, or should we just log a new ticket?

@ramya-rao-a ramya-rao-a changed the title suggestion about "copy line" Copying line shouldnt copy the new line at the end of the line Sep 20, 2018
@smhmd
Copy link

smhmd commented Dec 23, 2018

for now just duplicate line with Ctrl+Alt+Down and move line with Alt+down/Up.

@alexdima alexdima changed the title Copying line shouldnt copy the new line at the end of the line maintain cursor position when copying lines using ctrl+c, ctrl+v Oct 17, 2019
@alexdima alexdima self-assigned this Oct 17, 2019
@alexdima alexdima modified the milestones: Backlog, October 2019 Oct 17, 2019
@alexdima alexdima added the verification-needed Verification of issue is requested label Oct 28, 2019
@connor4312 connor4312 added verified Verification succeeded and removed verification-needed Verification of issue is requested labels Oct 29, 2019
@vscodebot vscodebot bot locked and limited conversation to collaborators Dec 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
editor-clipboard Editor clipboard issues feature-request Request for new features or functionality verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

7 participants