149 Shortcuts for Visual Studio 2015

Jump to: Manage Visual Studio, Bookmarks, Code Editor, Coding, Build and Debug, Tool Windows, For HTML Pages, Code Snippets (Visual C# Scheme)

Ctrl+S

Save current file

Ctrl+Shift+S

Save all files

Ctrl+Shift+N

Create new project

Ctrl+O

Open file

Ctrl+Shift+O

Open project

Ctrl+Shift+A

Add item to project

Esc

Close menu or dialog

Ctrl+P

Print

Shift+Alt+Enter

Toggle full screen mode

Ctrl+F4

Close current tab

Ctrl+F6/Ctrl+Shift+F6

Go to next / go to previous window

Ctrl+Tab, then Arrow keys

Press and hold Ctrl+Tab, then using arrow keys gives a small task manager with all open files and views

Ctrl-[/ Ctrl+S

Find current document in Solution Explorer

Ctrl+1

Diagram

Ctrl+2

Criteria

Ctrl+3

SQL

Ctrl+4

Results

F2/Ctrl+R/R

Rename

For keystrokes with two keys such as Ctrl+k+k, keep holding the Ctrl key until releasing the last key.

Ctrl+K+K

Toogle bookmark

Ctrl+K+N

Goto next bookmark

Ctrl+K+P

Goto previous bookmark

Ctrl+Shift+K+N

Goto next bookmark in folder

Ctrl+Shift+K+P

Goto previous bookmark in folder

Ctrl+K+W

Put focus on bookmark window

Esc

Leave bookmark window and focus on editor

Ctrl+K+H

Toggle code shortcut at current line*

Ctrl+K+L

Clear all bookmarks

Ctrl+\+T

Show Task List (including code shortcuts)

*if somebody figures out additional shortut keys on how to use code shortcuts, please edit this page and add.

Ctrl+F

Find and replace dialog box

F3/Shift+F3

Find next / find previous

Ctrl+H

Display Replace options on the quick tab

Shift+F12

Find all references for selected symbol

Ctrl+Shift+F

Find in files

Alt+F3, s

Stop current find in files operation

Ctrl+F3/Ctrl+Shift+F3

Find next / find previous in selected text

Alt+F12

Find symbol

Ctrl+D

Put cursor in find/command box of the toolbar. Use ctrl+/ in Visual C#

Ctrl+I/Ctrl+Shift+I

Incremental search / reverse incremental search

Shift+Alt+F12

Quick find symbol

Ctrl+,

Display Navigate-To dialog box

Ctrl+G

Goto line number

Ctrl+]

Go to matching brace in source file

Shift+Ctrl+Arrow down

Jump to next occurrence of highlighted symbol

Shift+Ctrl+Arrow up

Jump to previous occurrence of highlighted symbol

Ctrl+x, Ctrl+c, Ctrl+V

Cut, copy, paste

Ctrl+Shift+V

Pastes an item from the Clipboard ring

Ctrl+Z

Undo

Ctrl+Y

Redo (or Shift+Alt+Backspace, or Ctrl+Shift+Z)

Shift+Arrow Keys

Extend selection one character/one line

Ctrl+Shift+End/Ctrl+Shift+Home

Extend selection to end / to beginning of document

Ctrl+Shift+]

Extend selection to nexst brace

Shift+End/Shift+Home

Extend selection to end / to beginning of line

Shift+Page Down/Shift+Page Up

Extends selection down one page / up one page

Ctrl+W

Select current word

Esc

Cancel Selection

Ctrl+Shift+Page Down/Page Up

Moves cursor and extend selection to the last line / first line in view.

Ctrl+Shift+Arrow Right/Arrow Left

Extend selection one word to the right / one word to the left

Ctrl+A

Select All

Ctrl+M+M

Collapse / un-collapse current preset area (e.g. method)

Ctrl+M+H

Collpase / hide current selection

Ctrl+M+O

Collapse declaration bodies

Ctrl+M+A

Collapse all

Ctrl+M+X

Uncollapse all

Ctrl+m, ctrl+T

Collapse Html tag

Ctrl+L

Delete current line or selection of lines to and add to clipboard

Ctrl+Shift+L

Delete current line or selection of lines

Ctrl+Delete

Delete word to right of cursor

Ctrl+Backspace

Delete word to left of cursor

Ctrl+Enter

Enter blank line above cursor

Ctrl+Shift+Enter

Enter blank line below cursor

Ctrl+Shift+U

Make uppercase

Ctrl+U

Make lowercase (reverse upercase)

Ctrl+K+C

Comment selected text

Ctrl+K+U

Uncomment selected text

Ctrl+K+\

Remove white space and tabs in selection or around current cursor position

Ctrl+K+D

Format document to code formatting settings

Ctrl+K+F

Format selection to code formatting settings

Ctrl+Shift+Space

Display parameter required for selected method

Ctrl+Shift+8

Visualize whitespace (or press Ctrl+r, then Ctrl+w)

Ctrl+K+D

Format document to code formatting settings

Ctrl+K+F

Format selection to code formatting settings

Ctrl+Shift+T

Transpose word to right of cursor; makes b=a out of a=b if cursor was in front of a

Ctrl+T

Transpose character left and right of cursor; cursor between ab would make ba

Shift+Alt+T

Transpose line: Move line below cursor up and current line down.

Ctrl+Space

Autocomplete word from completion list (or alt+right arrow)

Ctrl+Shift+Space

Show parameter info

Ctrl+F12

Display symbol declaration

F12

Display symbol definition

Ctrl+J

Open IntelliSense completion list

F6

Build solution (or Ctrl+shift+b)

Ctrl+Alt+F7

Rebuild solution

Ctrl+Break

Cancel build process

Ctrl+\+E

Show error list

F9

Toggle breakpoint

Ctrl+B

Insert new function breakpoint

F5

Start debugging

F11

Debug / step into

F10

Debug / step over

Shift+F11

Debug / step out

Ctrl+F10

Debug / run to cursor

Ctrl+Alt+Q

Show Quickwatch window

Ctrl+Shift+F10

Set current statement to be the next executed

Alt+* (on numeric keyboard)

Show nexst statement

Ctrl+Alt+E

Show Exception dialog box

Ctrl+F11

Toggle between disassembly and user code view

Shift+F5

Stop Debugging

Ctrl+F5

Bypass debugger

Ctrl+Alt+P

Show attach to process window

Ctrl+Alt+break

Break all executing threads

Ctrl+/

Put cursor in the find/command box in toolbar

Ctrl+K+B

Open code snippet manager window

Alt+F11

Open macro IDE window

Ctrl+K+W

Open bookmark window

Ctrl+Alt+K

Open call hierarchy window

Ctrl+Shift+C

Open class view window

Ctrl+Alt+A

Open Command window

Ctrl+Shift+O

Open Output window

Ctrl+Shift+E

Open Resource view window

Ctrl+Alt+S

Open Server explorer window

Ctrl+Shift+L

Open Solution explorer window

Shift+Esc

Close Find & Replace Window

F7

Toggle between Design and Code behind pages

Shift+F7

Toggle between Design and HTML Source

Ctrl+Page Down / Page Up

Cycle between design, split and source

Ctrl+Shift+F9

Delete all breakpoints

I

If block

E+L

Else block

D+O

Do While Loop block

F+O+R

For Loop block

W+H

While loop block

L

Lock block

B+R

Break

S+H

Short

T+R

True

F

False

F+L

Float

B+Y

Byte

B+O

Bool

E

Enum myEnum

T

A new public class block

C+W

Console.WriteLine

M+B

MessageBox.show

C+R

CrossAppDomainDelegate

A+B

AccessViolationException

E+X

Exception class

S+V+M

Static Void Main block

P+U

Parallel

P+R

Public Int Property

S

Stackalloc

Created by ProNotion on 8/15/2011. Last updated on 7/25/2020

 

25 Comments for 'Visual Studio 2015'   

 
Email me replies   

Comment #25 by jqplanet.com Nov 1, 2018 at 07:29 am  Reply

Really useful....

Comment #24 by R.DHARMALINGAM Apr 5, 2016 at 03:31 am  Reply

hai this is your post very useful for visual studio

Comment #23 by HamdunSoft.Com Aug 18, 2015 at 07:33 am  Reply

That's good enough for .net developer.

Comment #22 by Muhammad Ashikuzzaman Aug 18, 2015 at 07:32 am  Reply

Thanks a lot. may Allah help you.

Comment #21 by coder Jul 30, 2015 at 03:18 pm  Reply

you swapped the "Display symbol definition" and "Display symbol declaration" The right shortcuts is: Ctrl+F12 Display symbol declaration F12 Display symbol definition BTW, Thanks for your post, it helped me a lot.

Reply #1 bernd Sep 4, 2015 at 09:35 pm

fixed; thanks!

Comment #20 by Dax Nov 3, 2014 at 11:13 pm  Reply

ctrl-[ ctrl-s to find current document in solution explorer

Reply #1 bernd Sep 4, 2015 at 09:39 pm

added thanks

Comment #19 by Anbuchelvan Aug 12, 2014 at 06:17 am  Reply

Alt + shift + T for move a line downwards

by
Anbuchelvan

Comment #18 by Nishad R Jul 3, 2014 at 01:52 am  Reply

Good One...More Useful...

Comment #17 by Kalai May 23, 2014 at 08:02 am  Reply

Easy and superb

Comment #16 by Ponram May 23, 2014 at 08:01 am  Reply

Very useful for developer

Comment #15 by Ganapathy May 23, 2014 at 08:00 am  Reply

Very nice

Reply #1 Mohan May 23, 2014 at 08:01 am

This post are very useful

Comment #14 by arulb2w Mar 27, 2014 at 01:28 am  Reply

Very nice :)

Comment #13 by vbrat Mar 24, 2014 at 03:26 pm  Reply

For HTML pages:
F7 toggle between design and code behind pages
Shift+F7 toggle between design and HTML source
Control+Page Down and Control+Page up cycle between design, split and source
Control+shift+F9 delete all breakpoints

Comment #12 by mohsencs Feb 12, 2014 at 03:53 am  Reply

Thanks a lot!

Comment #11 by njl_041x Dec 10, 2013 at 02:10 am  Reply

very nice

Comment #10 by Pete Cordell Aug 27, 2013 at 01:49 pm  Reply

Ctrl+F2 also creates a book mark. F2 to move to next bookmark, Shift+F2 to move back.

Comment #9 by bernd Jun 25, 2013 at 10:59 am  Reply

fixed; thanks!

Comment #8 by abc Jun 25, 2013 at 08:36 am  Reply

Build shortcut is f6 not f7.

Comment #7 by smshatters May 3, 2013 at 11:33 am  Reply

Brilliant! This is exactly what I was looking for, and it couldn't be anymore organized.

But in the Select Text section for select current word, I found that ctrl + w opens a tab for Visual Studio MSDN. To select the word I used ctrl + shift + w

Comment #6 by Group Enotes Dec 5, 2012 at 06:31 am  Reply

Good document

Comment #5 by chetan May 24, 2012 at 11:33 am  Reply

This is very good document....

Comment #4 by Jon Apr 3, 2012 at 03:38 pm  Reply

Oops... in the above, the original code like did have angle brackets in the list def:

List<IntSite> siteList

Comment #3 by Jon Apr 3, 2012 at 03:37 pm  Reply

I had case today where I was moving some code around and my fat fingers bumped some keys. I had a line that read:

List siteList = ...

and after, it was all spaced out like so:

List < IntSite > siteList = ...

I can't seem to find the shortcut that did that... anyone know?

Comment #2 by Shweta Patel Feb 4, 2012 at 05:26 am  Reply

Really nice. I was looking for such well defined short cuts.

Comment #1 by Nikhil Nov 23, 2011 at 06:34 am  Reply

Great post, helps new comers to catch up to prefessionals.
Thanks a lot

icon

Visual Studio Shortcuts

Advertising for Consideration:

Ads for Consideration:

Related:

Please kindly review and accept Terms of Use and Cookie & Policy Policy