Ctrl+C - Copy Entire Line If Nothing Selected
Posted: Mon Jan 07, 2013 2:13 pm
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
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
https://github.com/larsch/eclipse-linecopypasteOne 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
http://code.google.com/p/copycutcurrentline/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.
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.)