From the course: Visual Studio Developer Tips

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

Insert Line with Ctrl Enter

Insert Line with Ctrl Enter

- [Instructor] Inserting a blank line in a code file is probably second nature for you. I'm not sure what technique you employ. Here are some of the common techniques I've seen. I want to add a blank line after line 14. So I move my cursor with my mouse to the end of the line. And then I press the Enter key. That adds a new blank line on line 15, and it moves the insertion point to the beginning of that line. Control + Z to undo. Now I'll move my cursor to the beginning of the line with the mouse and press the Enter key. Now I get a new blank line on line 14, and all the rest of the code moves down. Another technique I see developers use for moving the cursor to the beginning or the ending of the line, instead of using the mouse, is to use the keyboard. You can use the arrow key. That moves one character at a time. Or you can hold down the Control key. Now when you tap the arrow keys, you're moving one word at a time. But you still need to have your cursor at the end of the line to…

Contents