Visual studio editor contains all tid-bits for programmers. The editing capabilities are amazing as always; we know. In this post, I am talking about the behavior of unselected lines.
Knowingly or unknowingly you might have experienced, we can copy an entire line by just pressing Ctrl+C without selecting it.
| Ctrl + C | Copy the current line (including new line) |
| Ctrl + X | Cut the current line (including new line) |
| Ctrl + L | Delete the current line and copy to clipboard |
| Ctrl + Shift + L | Delete the current line only |
You can also control the Cut – Copy behavior at options page (Tools->Options->Text Editor->All Language->General). Note that this option can be controlled independently for each language type. It’s all your convenience.