Visual Studio Hotkeys in 2023, List of Visual Studio Hotkeys - ByteScout (2023)

The general idea of ​​using these Visual Studio keyboard shortcuts is to increase productivity and save time. With these top 50 Visual Studio keyboard shortcuts, developers can easily do more without taking their fingers off the keyboard. These keyboard shortcuts work from Visual Studio 2015 to the latest Visual Studio 2019.

Visual Studio Hotkeys in 2023, List of Visual Studio Hotkeys - ByteScout (1)

1. CTRL+Q hurtigstart

CTRL+Q opens the Quick Launch, allowing you to search an indexed list of all available functions in Visual Studio. For example, if you want to add a new item, use the quickstart with it as the keyword and get instructions on how to do it.

In Visual Studio, users can applyFast startupExplore and perform IDE activities directly in the form of elements such as templates, options, and menus. One thing to keep in mind is that users cannot applyFast startupExplore the code and graphics.

2. CTRL+] to find the closing bracket

With many nested statements, it can be difficult to keep track of opening and closing brackets, and it can cause compiler errors if they are missing. Use CTRL+] to find a matching closing hook for a function or class and reduce the chance of annoying error messages.

3. CTRL+K+F formats sloppy code

Sometimes the proper functioning of code comes at the expense of its beauty. Proper indentation and spacing make the code readable and that's how CTRL+K+F works. Just highlight the parts that need formatting and it will magically clean up the inappropriate coding.

4. TAB automates tedious typing

toLoop andif it is soConditions have a standard structure and are tedious to write over and over again. To automate the process, simply type the beginning of the condition. For example, type "Try", hit the TAB key twice, and you'll access the snippet that executes the condition for you (up to the curly braces). All you have to do is change the parameters and you're good to go.

5. CTRL+SHIFT+F5 stop and rebuild

This shortcut combines three Visual Studio Code debugging commands into one. CTRL+SHIFT+F5 allows you to end a debug session, restart it, and start a new debug session.

6. Hotkey: group comment CTRL+K+C remote comment CTRL+K+U

Manually adding and removing "//" is especially tedious if you want to disable very long code. CTRL+K+C is a faster way to group comments. Just highlight the block and enter the Visual Studio shortcut. When you need to re-enable the lines, select the block and uncomment it with CTRL+K+U .

You can also use Ctrl+Shift+/ to toggle. Toggle can be used for uncommenting because Ctrl+/ is a shortcut to toggle between line comments and uncommenting. To do this, click on Settings and then click on Keyboard Shortcuts. Here you will see a "change block". Click now and enter your combination.

7. ALT+SHIFT+ENTER enhances full screen

Having multiple screens open can help you multitask. But if you wanted to focus on one part, it meant you missed important panels like menu bar, to go full screen. ALT+SHIFT+ENTER gives you full screen, but you still have access to menus and tables. Another advantage is that you have access to another 4 to 10 additional lines of code, depending on your screen resolution.

8. Ctrl+K+S will automatically add the code to your function

You already have a TRY-CATCH or IF loop structure, but you still need to insert some code there. Use Ctrl+K+S to open a context menu from which you can select the part to use to fulfill the condition.

9. Code Bookmark Hotkeys: CTRL+K+K, CTRL+K+N and CTRL+K+P

Bookmarks help you keep track of special pointers in your code. For example, if you refer to a function frequently, CTRL+K+K will highlight the line with a dot on the left. Also use CTRL+K+N to go to the next bookmark in the list and CTRL+K+P to go to the previous bookmark. Remember, bookmarks highlight lines of code, not the code itself.

10. CTRL+SHIFT+V for clipboard ring

Clipboard Ring is a Visual StudioA function that allows copying and pasting multiple blocks of code. Users can copy multiple lines of code and place them on the clipboard. These lines of code can then be inserted when needed. This improves deployment efficiency. The copy of the code has been savedin the memory, users can use them in the IDE.

CTRL+C allows you to keep the last 15 copied items in the clipboard. CTRL+SHIFT+V gives you access to this clipboard ring where you can scroll through the list of copied lines until you find the one you want to paste.

11. Shortcut keys CTRL+M+M and CTRL+M+O for code wrapping

If your code file is very large and you want to make it more manageable, consider using the CTRL+M+M Visual Studio Code shortcut to minimize it. Just select the entire file and use this hotkey to hide all functions in its most basic view. You can expand a specific section again to see what you want. You can also use CTRL+M+O to collapse to the definition layer, which can be a more useful view.

12. ALT hotkey to change blocks

You have a block of code and want to process an event so that it is reflected in other lines of the block. Instead of changing each line individually, hold ALT and click and drag to highlight the block. Enter the changes you want and you will immediately see all the selected lines change.

13. Block movement against hotkeys: ALT+↑ & ALT+↓

Η Microsoft,visual studyUser can choose onejamWhen selecting code and text with the mouse, press the Alt key to edit the text. This is especially useful for selecting a string of data or code instead of an entire line.

These Microsoft Visual Studio shortcuts are a faster alternative to copy-move-paste. To change the position of specific blocks of code, highlight those lines, then click ALT+↑ (up arrow) to move all lines up at once, or ALT+↓ (down arrow) to move down down all the preferred lines.

14. F12 & SHIFT+F12 hotkeys for Visual Studio to find references

In Visual Studio, users can usefind all referencesSee where the codebase is detailed for the necessary code details. Thisfind all referencesAvailable in the context list or by simply tappingShift + F12.

To view an instance of a class, hover over the name and press F12. To see all the places you've used this class, use SHIFT+F12.

15. CTRL+ and CTRL+SHIFT+ browsing history

These VS Code hotkeys are absolutely essential. Imagine you've scrolled through several lines of code and want to return to a reference that's 100 lines away. Instead of scrolling up or down to find that location, use CTRL+- (minus sign) to return to your browsing history, which shows everywhere you've clicked, in order. Use CTRL+SHIFT+- to continue.

See all Visual Studio keyboard shortcuts in this video tutorial:


Built-in Microsoft Visual Studio means that only the root files that have changed since the latest version are compiled and linked. The rebuildability of Microsoft Visual Studio means that all root files are compiled and linked, regardless of whether they have been modified or not.

CTRL+SHIFT+B is a faster way to create a solution.

17. CTRL+. for autocomplete

For example, if you want to create a new task, use these Visual Studio keyboard shortcuts. Type the word "work" and use CTRL+. (click) to view the menu. Press Enter and you will see the namespace appear. Autocompletion helps with any coding issues such as maintaining naming conventions.

18. CTRL+R+R Rename property

You build and find that you have not named the property correctly. Instead of searching for each reference, click on the variable and use CTRL+R+R. This hotkey not only renames the property, but also changes the name of the reference. When you click Apply, you'll see all the references it will rename.

19. F11 enters the constructor

These Visual Studio keyboard shortcuts are very useful when debugging. If you want to advance the function as far as possible instead of just going to the next line, press F11 to go to the constructor.

Always remember that debugging a static constructor will not work. If not, then it will work normally. For this, the constructor is called only once. Therefore, it is important to ensure that the debugger is attached to the class before accessing it for the first time.

20. Quick mode ALT+ENTER

When you see a light bulb, it means there are easier actions to take. You can take advantage of hotkeys. For example, if you have an unused USING clause or want to add a clause, ALT+ENTER will remove the unnecessary clause and add the suggested part to your clause.

21. Ctrl+K delete bookmark

Visual Studio includes a feature that allows users to add bookmarks. This bookmark can be added to the solution with a single line of code. Like normal bookmarks that immediately return the user to their last position, Visual Studio allows the user to immediately find the marked line of code. Users can create multiple bookmarks and navigate between them instantly. Now, to delete that bookmark, we have a Ctrl+K shortcut.

These Visual Studio Code keyboard shortcuts are usefulSyntax to remove comments from the current line or the currently selected line of code. For example, if you're using a code editor and want to delete the comment syntax you've typed, Ctrl-K is one of the Visual Studio keyboard shortcuts for manipulating text.

22. Ctrl+Shift+O to open the project

This key is part of the hotkeys associated with the project. For example, you are using Microsoft Visual Studio and you have developed a new project called "MyProject". now if you wantOpen this project in a code editor and you can use Ctrl+Shift+O. Visual Studio Code Project Shortcuts are useful if you work with large projects and repositories.

23. Ctrl+Alt+Insert base class override

This shortcut is also part of the project-related Visual Studio shortcuts. For example, if you wantoverriding the base class method. Now you want to achieve this, since you have already achieved itDerived class when calling an overridable method. To do this in the class view you can useCtrl+Alt+Pastekey.

24. Ctrl+I for incremental search

This shortcut is part of Search and replaces the associated Visual Studio shortcut key. This hotkey starts an incremental search.After pressing Ctrl+I, the user can enter text. After entering text,This key helps to find text and related patterns. Visual Studio's find and replace keyboard shortcuts are useful for finding various code and comments directly from the code editor.

25. Alt+F3, R stands for regular expression

This shortcut is also part of Search and replaces the associated Visual Studio Code shortcut.This key is used to select or clear regular expression settings. With Alt+F3, R's special characters can be used to find and replace methods.

26. Ctrl+Alt+M,1 for memory 1 window

This key is part of the Visual Studio commands related to debugging.This hotkey displays the Memory 1 window, which is used to observe the memory of the method being corrected. This is especially useful when you don't have a debug graph ready for your code. This is also important for research in large shock zones.

27. Ctrl+Alt+J for object browser

This key is part of the Microsoft Visual Studio shortcut associated with the Object Browser.This will bring up the object browser to inspect classes, properties, processes, events and constantsIn the project or is determined by the components and sample libraries referenced by the project.

28. Ctrl+Shift+M to open the tool window

In Visual Studio, tool windows are child windows of the IDE. The IDE is used to display various information. Each view contains two collections of tool windows. These are called major, minor. In this case, only one tool window per collection or group should be active.

This hotkey is part of the command associated with the tool window.This changes the window inside or outside the method so that text inside the window can be selected.

29. Ctrl-Page down for window functions

The key isWindowsVisual Studio code shortcuts related to actions.Allows you to move to the next tab in a document or window. For example, if you could change the HTML editor from Design view to HTML view.

30. Shift+F8 cursor

Visual Studio allows users to create markers. In Visual Studio, users can create index files. The file is a bitmap file. cur extension. To create this file, simply right-click on the selected project and select "Add New Item". Now select Cursor File which will create a .cur file.

This shortcut is part of the regular Visual Studio Code commands. This key moves the cursor to the previous item,For example, in the Task List window or the Find Results window.

31.Ctrl+Alt+L to explore solutions

This hotkey displays the Solution Explorer.The Solution Explorer is responsible for listing the projects and files in the current project solution. The Solution Explorer is a window that allows users to browse and maintain all projects.

Solution Explorer displays the projects that make up the solution, the files and folders in each project that appear on the physical hard disk, and any assemblies, COM objects, or files referenced by the projects. The shortcut menu in Solution Explorer contains several commands to help you manage your projects.

To open a window without using a hotkey, selectTo > Explore solutions

32. Ctrl+Alt+X Toolbox

This hotkey displays the toolbox.The toolbox is an important part of VS. Contains controls and other objects that can be moved in edit windows and designer windows. Many controls can be easily added to a project thanks to the toolbox.

The toolbox is displayed in a designer view, such as a XAML file or a Windows Forms application project. The toolbox displays only the controls that are currently available to the designer. By default, the toolbox collapses along the left side of the Visual Studio IDE and only appears when the cursor is moved over it. The toolbox can be pinned (by clicking the "pin" symbol on the toolbar) so that it remains open while the cursor is moving. You can also display the Toolbox window and move it around the screen.

To open a window without using a hotkey, selectView > Toolbox

33. Shift+F4

This hotkey displays the property pages for the currently selected object and control. E.g,A project's settings and many other such properties can be displayed with Shift+F4. Users can use this hotkey to change and view the configuration.

34. Ctrl+Alt+R

This hotkey is used to display a web browser window in Visual Studio.Ctrl+Alt+R allows users to view or monitor various web pages on the Internet.

VS Code's web browser window lets you open a real sample browser right in the editor and debugger. Browser Preview is supported by headless Chromium and works by starting a new process with a headless instance of Chromium. This can be Google Chrome or Microsoft Edge. This allows for rendering web information in VS Code in a safe way, as well as exciting features like in-editor debugging!


This hotkey is used to display the Macro Explorer window.Displays all available macros. Macros allow users to automate repetitive tasks within the IDE. Alt+F8 is one of the important shortcut keys in Visual Studio.

Macro Explorer windowIt is a Visual Studio extension that can capture most commands in Visual Studio, including text editing functions. Visual Studio macros are a technique to increase productivity when a specific action or task needs to be repeated multiple times. With the exception of thinking, macros can do almost anything that can be done manually in Visual Studio's integrated development environment (IDE).

To open a window without using a hotkey, selectVis -> Andre Windows -> Macro Explorer.

36. Ctrl+Shift+G

Ctrl+Shift+G JaUsed to specify elements to align with the hidden grid. The grid spacing can be set in the design window of the HTML designer and the grid will automatically adjust the next time the user opens the document.

37. Ctrl+Shift+L

This hotkey in Visual Studio is used to display the bookmarks dialog.Users can use bookmarks to identify or point to specific lines of code to comment out important messagesor quickly return to a specific location. Shortcut Ctrl+K is used to add bookmark.

noting:Bookmarks are listed as line numbers instead of code. When you change the code, the bookmark stays on the line number and does not move with the code. bookmark window (View > Bookmarks Window) and text editor toolbars provide bookmark commands and icons.

  • The Next Bookmark and Previous Bookmark buttons allow you to navigate between bookmarks in the Bookmarks window.
  • You can organize bookmarks into virtual folders by selecting New Folder in the Bookmarks box and dragging the selected bookmarks to a new folder.
  • You can disable bookmarks without deleting them by selecting the Disable All Bookmarks button in the bookmarks box. You can re-enable them by selecting the same button (now called "Enable all bookmarks").

38. Ctrl+F9

Ctrl+F9 Enables or disables breakpoints.Used to set a breakpoint on the current line of code. It is one of the handy hotkeys of Visual Studio.

Breakpoints are one of the most important debugging tools in a developer's toolbox. Breakpoints are placed anywhere you want to stop debugging execution. Click in the left margin next to a line of code to set a breakpoint in the source code.

Alternatively, you can select the row and pressF9, selectTroubleshoot > Change breakpoint, or right-click and selectBreakpoints > Insert Breakpoint. Red dots indicate breakpoints in the left margin.


The F5 hotkey is used to debug applications.Used to run the application in debug modeIt shows what the code does when it is executed. On the other hand, the shortcut key ctrl + F5 is used to run the application without a debugger.

A debug menu (sometimes called a debug mode) is a user interface built into a computer program that allows the user to inspect and/or change the internal state of the program for debugging purposes.

40. Ctrl+Alt+I

This Visual Studio shortcut is located under the window management hotkeys. Used to open the immediate window. Thisinstant windowAllows communication with parameters and variablesWhen the written program is in debug mode. Allows modifying and inspecting variables or parameters in written code.

41. Ctrl+Shift+1

This hotkey is widely used by developers to control things. This hotkey allows the developer to navigate to subsequent descriptions, information, or references about the object. It can be accessed in the Object Browser and Class View windows.You can also access the source editor window using the Shift+F12 shortcut.

It is one of the most used hotkeys. This hotkey is also used to call View.BrowseNext. It's in the View Shortcuts section of Visual Studio. Ctrl+Shift+2 hotkey is used to launch View.BrowsePrevious. In short, it belongs to the View category, also known as a navigation shortcut.


This hotkey is used to call the CrossAppDomainDelegate. Used to execute code in another application domain specified by the specified delegate.It is used in the system namespace and is part of the mscorlib.dll assembly. This hotkey is also used to call the AppDomain.DoCallBack(CrossAppDomainDelegate) method. Each application domain has an application domain variable.

Here, the constructor starts when the attachment is wrapped in the application domain and the destructor starts when the application domain is released.The application domain variable describes the application domain, which is a private setting for running the application. The class cannot be derived.


The "S" hotkey is used to call Stackalloc. It is used to allocate a block of memory on the stack.Blocks constructed by executing this method are implicitly discarded when the method is called. The user cannot explicitly free the memory specified by stackalloc. Blocks of memory allocated on the stack are independent of garbage collection and do not need to be committed to static statements.

The stackalloc method allows indirect buffer overflow detection in the standard (common) language runtime (CLR).If a buffer overflow is detected, the method is aborted as soon as possible to reduce the risk of malicious code execution.


A+B hotkey is used to call AccessViolationException. An access violation occurs in unmanaged or unsafe code when the code tries to write to memory that is not defined or has no path.

This usually happens because the cursor value is incorrect. Not all programs write inside a bad pointer to an access violation, so an access violation usually means that something read or written has turned into a bad pointer and the memory can be corrupted. Therefore, an access breach almost always means a serious code error. AccessViolationException clearly identifies these serious errors.

45. C+D

This hotkey is used to call the Console.WriteLine method. Used to write specified data supported by popular line terminators to a regular output stream.It can be used with different parameters. Also used to write a text description of the specified object (supported by popular line terminators) to plain output using data in the specified format.

The default line terminator is a line whose purpose is to return position followed by a newline. You can customize the line terminal by setting the Out part of TextWriter.NewLine to another string.


The F10 key is one of the most used keys. F10 is also known assteps. The interesting thing about this key is that it doesn't fall very far on the call stack. Continues to the next line of the existing function. The F10 key can be used for two purposes, the first and most popular application iscross a line.The other use of the F10 key isStart event debugging and split it on the first line of codeWhere does the app start?

47. Ctrl+Shift+T

This hotkey is one of the coolest. This key is used to reopen a closed editor. Also used to restore editing sessions. a codeprocessingRefactoring is used to build and debug web applications. The interesting thing about this shortcut is that it can also be used in the Chrome browser to restore accidentally closed tabs. The whole point of using this Visual Studio hotkey is to increase richness and save time.

48. Ctrl+K O

This key is used extensively in Visual Studio projects. Used to display the active file in a new window/slideshow. VS Solution Explorer can also synchronize with the active file when running on a large codebase. The important thing to remember here is that it does moving to other similar files, adding new classes in the same place, renaming files, etc. much faster. The environment that keeps objects in sync can be configured in the Visual Studio editor and is disabled by default. Visual Studio also has some great featurescode segmentUsers can take advantage of this to instantly and quickly create frequently used blocks of code. Code snippets are available in various programming languages ​​such as C#, Visual Basic and C++.

49. Ctrl + F12

This hotkey is one of the most important hotkeys in a window or instance of the Visual Studio code editor. This hotkey is used to display information, meaning and description of the selected symbol. The only use of the F12 key is to open file extensions likeSet a provider. thatIndicates that it only responds to "go to definition". This key is one of the widely used keys along with other important options. Visual Studio also has a set of tools for building Microsoft Azure applications. Users can quickly configure, deploy, debug, and extend Azure applications and settings from the integrated development environment (IDE). To get Azure tools and project templates, users can chooseAzure deploymentWorkload after installing Visual Studio.

50. Ctrl+Shift+`

This key is mainly used to create a new terminal in Visual Studio. Visual Studio Code integrates a full featureopen terminalStart from the center of the workspace. It integrates with the editor to support innovations such as linking and debugging. To launch a terminal, users can use the keyboard shortcut Ctrl+Shift+` with backtick, as described here. The important thing to note here is that if the user wants toContinue without passwordoption and then just open the IDE without saving any specific project or code. Users can set this option to enter a Live Share session or add in a debug method. they can also pushEscStop the launch window and start the IDE.

About the Author

Visual Studio Hotkeys in 2023, List of Visual Studio Hotkeys - ByteScout (2)ByteScout Writers TeamByteScout has a team of professional writers who are skilled in various technical topics. We select the best writers to cover interesting and trendy topics for our readers. We love programmers and hope our articles help you learn about programming and programmers.


Top Articles
Latest Posts
Article information

Author: Trent Wehner

Last Updated: 27/08/2023

Views: 5957

Rating: 4.6 / 5 (76 voted)

Reviews: 91% of readers found this page helpful

Author information

Name: Trent Wehner

Birthday: 1993-03-14

Address: 872 Kevin Squares, New Codyville, AK 01785-0416

Phone: +18698800304764

Job: Senior Farming Developer

Hobby: Paintball, Calligraphy, Hunting, Flying disc, Lapidary, Rafting, Inline skating

Introduction: My name is Trent Wehner, I am a talented, brainy, zealous, light, funny, gleaming, attractive person who loves writing and wants to share my knowledge and understanding with you.