Copy & Paste Line

Ctrl+X / Ctrl+C without any selection, then Ctrl + v got the copied line with a new blank line?

everytime I should delete the blank line after paste ..... how to fix it?

3
5 comments

Hej, I am also looking for this option. The answer of Andriy did not solve this problem. I think he miss understood it, but this question is about the new line after the copy paste without any selection. I want the copy paste option, but do not want the new line.

x (x)
 
1

@Timkilian51

I believe I understood it just fine -- no complains or clarification from original author.

If you use Copy without making any selection then the WHOLE CURRENT LINE will be copied, which includes the end of line symbol (same as if you use "Select line at caret" action first and then invoke Copy).

That is how that action works. There is no separate "Copy without end of line" action available. If you need that without end of line symbols then it's up to you to include that part into your selection or not (in other words -- select desired text first and then do your copy+paste).

P.S. You can check for plugins, it's always possible that someone has created one for such behaviour.

2

Exactly this "Copy without end of line" without making any selelction is what I need, because I think that it would improve my workflow. I am using the "copy without making any selection"-feature now for a longer period, and have to delete the extra line every time I do it. Thats pretty annoying. I will see if I can find a plugin for that.

x (x)
 
1

Did you try the editor.skip.copy.and.cut.for.empty.selection workaround? It should do the trick. If it's not - please illustrate/describe why doesn't that work for you.

0

Please sign in to leave a comment.