Visual Studio Cut or Delete the Current Line
October 31st, 2011
In the past month I have written over 1,000 lines of code every single week (not that this is anything new) but without realizing it I was spending a lot of time highlighting, deleting text, then removing the carriage return/line feed. This short-cut may not seem like much but it is a huge time-saver as you work to design your classes in a structured extensible way and it has speed up my editing by over 10%.
Keyboard: CTRL + L (cut text); SHIFT + DEL(cut text and carriage return); CTRL + X(cut text and carriage return); CTRL + SHIFT + L (delete)
Command: Edit.LineCut; Edit.Cut; Edit.Cut; Edit.LineDelete
Versions: 2008,2010
Related posts:
- SQL Server Management Studio Keyboard Shortcuts Key bindings for SSMS default to Visual Studio scheme... again...
- Microsoft Visual C# Default Keybindings Took a while to find a good printout.... but I...



