1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
5/5, 2 ratings

Double Your Coding Speed! Shortcuts, Tips, and Tricks To Coding Faster!

Summary of the tutorial

Hey guys!

In this tutorial, I'm going to give some little tips, tricks, and shortcuts to increasing your coding speed.


#1 Tip - Don't use your mouse!

Using just your keyboard for navigating through the programs you are building will save you a ton of time and make you a much quicker and better developer!

Check out the tutorial to learn many tips and tricks to becoming a faster developer!

All credits to the content of this tutorial go to the video tutorials that I've been watching that I link to in the Tutorials forum. I will continue to update the tutorial as I progress through the lecture.

1 Text Navigation

(CTRL + >) - Navigates through your text to the right by skipping through each word instead of each character.
(CTRL + <) - Navigates through your text to the left by skipping through each word instead of each character.

(End) - Navigates to the end of the text on the current line you are on.
(Home) - Navigates to the beginning of the text on the current line you are on.

(Page Down) - Scrolls the page down.
(Page Up) - Scrolls the page up.

(CTRL + End) - Jump to the end of the file.
(CTRL + Home) - Jump to the beginning of the file.

2 Text Selection

(SHIFT)- Activates Selection
(SHIFT + >) - Selects following character to the right.
(SHIFT + <) - Selects following character to the left.

(SHIFT + CTRL + >) - Selects one word to the right.
(SHIFT + CTRL + <) - Selects one word to the left.

(SHIFT + End) - Selects from where curse is to the end of the line.
(SHIFT + Home) - Selects from the beginning of the line to where the cursor is.

3 Deleting Text

(Backspace) - Deletes one character to the left of the cursor.
(CTRL + Backspace) - Deletes one word to the left of the cursor.


(Delete) - Deletes a character to the right of the cursor.
(CTRL + Delete) - Deletes one word to the right of the cursor.

(CTRL + L) - Deletes the current line.

4 Commenting Code

(CTRL + K then CTRL + C) - Mark selection as comment
(CTRL + K then CTRL + U) - Remove selections comments

5 Bookmarks

Bookmarking is a nice feature that Visual Studio has that allows you to Bookmark certain lines of the code that you wish to go back to, but don't want to lose focus on what you are trying to do.

Bookmarking can be done on the current line that your cursor is on by:

(CTRL + K then CTRL + K again) - Toggle Bookmark On/Off
(CTRL + K then CTRL + W) - View Bookmark Window

6 Expanding And Collapsing Code

Collapsing a code block can be useful if your file has very long methods that you have to navigate through.

The shortcut to expand or collapse a block of code is : (CTRL + M then CTRL + M again)

7 Working With Tabs And Windows

When you are working on a task, try to keep a minimal amount of tabs open.
Only keep the tabs open that you are currently working on or need reference to.

Instead of manually selecting each open tab with your mouse, use the keyboard instead. Time is wasted when you have to move your mouse to click a tab or navigate through your tabs.

You're already typing, so why not continue typing to navigate through all your tabs instead.

Here are the shortcuts:

(CTRL + TAB) - Cycle through the open tabs.
(CTRL + SHIFT + TAB) - Cycle through the open tabs in the reverse order.

(CTRL + F6) - Go to the next tab (In the order they were opened).
(CTRL + Shift + F6) - Go to the previous tab (In the order they were opened).

(CTRL + F4) - Close the current tab.
(ALT + W + L) - Close all open tabs.

(CTRL + "+" + ,) - Recently opened tabs shortcut menu.

(CTRL + T) - Open the navigate dialog.
(Important!! Navigating through the solution explorer is a waste of time! If you need to find ANY file or ANY method, USE THIS! It will save you loads of time and is so convenient!)

(SHIFT + ALT + ENTER) - Toggle the full screen view.

8 Find And Replace

(CTRL + F) - Displays the Find Dialog
(CTRL + SHIFT + F) - Displays the Find In Files Dialog.
(F3) - Finds the next occurrence of the searched text.
(SHIFT + F3) - Finds the previous occurrence of the searched text.

(CTRL + H) - Display the Replace Dialog.
(ALT + R) - Replace the currently selected occurrence (1)
(ALT + A) - Replace ALL occurrences of the searched text.

9 Running And Debugging

(CTRL + F5) - Run the application.
(F5) - Run the application in DEBUG mode.
(SHIFT + F5) - Stop the debugging session.

(F9) - Insert or remove a breakpoint in on the cursor's line.

(F10) - Step over a method ( in debug mode ).
(F11) - Step into a method ( in debug mode ).
(SHIFT + F11) - Step out of a method ( in debug mode ).

10 Compiling The Application

(CTRL + SHIFT + B) - Build application without running it.
(F8) - Cycle through any errors that exist from a failed compilation.

11 Code Snippets (VERY IMPORTANT)

There are certain reserved keywords when typing code into your file.
Getting familiar and using these keywords/code snippets can save you tons of time.

Here are some keywords to type in when writing code to make it much faster. You can move through the snippets by pressing tab.

(class) - Creates a class.
(ctor) - Creates a constructor based on the class name.
(prop) - Creates an auto-implemented property.
(propfull) - Create a property with a private field.
(equals) - Overrides the equals method of the default object class that ALL classes inherit.
(for) - Creates a for loop.
(forr) - Creatures a for loop that decrements the loop variable.
(foreach) - Creates a foreach loop.
(while) - Creates a while loop.
(do) - Creates a do/while loop.
(try) - Creates a try/catch block.
(tryf) - Creates a try/finally block.
(interface) - Creates an interface.

12 Formatting Code

Content not yet filled