-
Notifications
You must be signed in to change notification settings - Fork 29.2k
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
Mulitline copy/pasting #11007
Comments
@vsamy I am not sure if I understand what is your requirement / issue here. Can you please elaborate more? |
Sure. In vscode to copy/cut paste a line you usually do a ctrl+x/ctrl+c then a ctrl+v. This is very convenient but it only can be done one line at a time. If i have multicursor and try to cut/copy paste all the line at the same time it does not work and leave blank lines. Maybe i missed a shorcut on multiline copy pasting. It is like a '4dd' 'p' in vim for example. I hope it is more clear to you now. |
You can do this by selecting all or part of the lines, press command for |
Ok, thank you for the tips. |
@vsamy - does this answer it - can this issue be closed? |
Sorry for the late answer. It does give me a way to bypass my problem and it works properly. It depends on whether or not you do want to correct this copy/paste problem or not. |
@vsamy - what copy/paste problem are you referring to? |
The copy/paste when having multicursors. |
What behavior were you expecting? |
Ok let's get back from zero. The aim is to copy/paste multiple lines at the same time. Note for me, shift+alt+down does not behaves the same on windows and ubuntu (is it just me ?). |
I am not sure I understand. The |
The aim is not to replace lines but rather add the copied lines to another location. Im just saying that having multicursors and doing a ctrl+x/ctrl+v should work the same (but for several lines) as doing it with one cursor. |
OK, I think I understand. If you use multiple cursors and use |
From what i understood there are two problems: When using
When not using
|
For first use case with I think the answer in your second use case is not to expect that selecting only ends of lines will work for copy/cut entire lines. The editor's behavior in this case is possibly a bug, but you don't need multiple cursors to select/copy/cut entire lines. |
"you don't need multiple cursors to select/copy/cut entire lines". True enough. |
There are a couple of extensions that may provide the "select entire lines" feature you are looking for? https://marketplace.visualstudio.com/items?itemName=bigous.vscode-multi-line-tricks https://marketplace.visualstudio.com/items?itemName=andreaskian.vscode-select-line |
I have disabled |
Steps to Reproduce:
The text was updated successfully, but these errors were encountered: