Ctrl+C - Copy Entire Line If Nothing Selected

Ideas for new features

Moderators: AmigoJack, helios, bbadmin, Bob Hansen, MudGuard

Post Reply
robertcollier4
Posts: 22
Joined: Tue Jan 31, 2012 5:38 am

Ctrl+C - Copy Entire Line If Nothing Selected

Post by robertcollier4 »

It would be nice to have a keyboard configurable shortcut for the behavior common in programming IDEs, that is:
Ctrl+C when nothing selected - will copy the current line.
Ctrl+V -- will paste that line with original indentation (from beginning of line, not from current keyboard caret indentation).

This will allow programmers to very easily copy and paste lines around in a document without having to 'select' first. - A very common workflow.

http://grahamhackingscala.blogspot.in/2 ... -idea.html
One of the most common things I do when coding is to copy or cut a single line. The JetBrains guys, having realised this, have made it really easy to do: If you have nothing selected in IntelliJ IDEA and you press Ctrl-C or Ctrl-X, it will copy or cut the current line
https://github.com/larsch/eclipse-linecopypaste
When nothing is selected, the Copy and Cut actions will work on the current line. Paste will insert lines at the start of the current line rather than at the current cursor location. When anything is selected, the default Copy/Cut/Paste behaviour will function without any modifications.
http://code.google.com/p/copycutcurrentline/
Press Ctrl-C to copy or Ctrl-X to cut the whole line in an editor if you select nothing. (It works as usual if you select some text.)
Put the caret on any line on any position.
Press Ctrl-V to paste the line above. (You will not lose the caret position.)
Post Reply