Visual Studio (2005,2008,2010) Tips and Tricks.
#20 Create New Line; Above and Below your Current Line
Thursday, January 22 2009
Need a new line above what your currently typing? Imagine this walk through. [HOME],[ENTER],[UP]. Three keys to get a new line. There is a shortcut reducing this to two keys. This quick trick shows you two keyboard shortcuts to enter line lines, one for above, and one for below your current focused line.
Snippets / Notes:
[CTRL]+[ENTER] = Insert Line Above
- (Same effect as [HOME],[ENTER],[UP])
[CTRL]+[SHIFT]+[ENTER] = Insert Line Below
- (Same effect as [END],[ENTER])
Visual Studio Tip / Trick #020 English Transcription:
Today’s Visual studio trick number 20 was originally published in text by Sara Ford in august of 2007. The trick is new lines. Your cursor is in a middle of a line and you would like to press [END] then [ENTER] you can actually do that with a key board short cut of [CTRL]+[SHIFT]+[ENTER] which will move a new line to the bottom or underneath where you currently are and [CTRL]+[ENTER] will put a new line above. So this is particularly helpful if you are in middle of a thought process [CTRL]+[ENTER] will move your cursor up one line and then [CTRL]+[SHIFT],[ENTER] will move you down to next line. Saves a little bit of keystroke better than [HOME],[ENTER] or [END],[ENTER] to effectively accomplishing the same thing.
0 comment(s)