Creating Custom Keyboard Shortcuts in VS.NET

Creating Custom Keyboard Shortcuts in VS.NET

Keyboard shortcuts are extremely useful when you use a particular option repeatedly?like when you select menus or toolbars manually. Sometimes, the default shortcut is cryptic and you cannot remember it. Otherwise, the shortcuts do not exist at all. Here is how you can assign your own custom shortcuts to the actions you use very often.

  1. Start Visual Studio.
  2. Choose Tools?>Customize.
  3. Click on the button Keyboard.
  4. A complex looking dialog will appear.
  5. The left section lists the various items which are customisable. Keyboard will be selected in this case.
  6. The settings you change may interfere with settings of other users who may share your machine. To avoid this, save your settings as a collection of named settings. Before you customise anything, click on Save As and choose a different name for your collection of settings.
  7. Type part of the menu or toolbar button for which you would like to assign a shortcut key in the textbox Show Commands Containing. This launches a substring search on all the commands and returns a filtered list. Browse the set of commands and locate the one you want.
  8. If the command already has a key assigned, view it. It is possible that there is a shortcut key that is not shown in the menus. If this is the case, memorise the shortcut and exit this dialog. No customisation is required.
  9. If there’s no shortcut, or you dont like the default shortcut, customise it. Locate the command and go to the Press shortcut key(s) textbox. Press the required combination. VS understands which keys you pressed and puts their names there. Remember that you can specify multiple shortcuts for a single command.
  10. It’s possible that the keyboard shortcut that you are trying to use is already used by VS.NET for some other existing command. If so, this command will be listed. You can override this shortcut and map it to the command selected by you. If you dont want to disturb the current assignment, type a new keyboard shortcut. Remember to delete the existing shortcut before you type the new one.
  11. Click on Assign.

This can dramatically increase your productivity and efficiency while working on VS.NET.

Note: It is possible that you need different types of shortcuts depending upon the type of project (winform/Webform) or the type of file being edited. For such custom requirements, save your shortcut settings under different names and load the appropriate collection as per your needs.

Share the Post:
XDR solutions

The Benefits of Using XDR Solutions

Cybercriminals constantly adapt their strategies, developing newer, more powerful, and intelligent ways to attack your network. Since security professionals must innovate as well, more conventional endpoint detection solutions have evolved

AI is revolutionizing fraud detection

How AI is Revolutionizing Fraud Detection

Artificial intelligence – commonly known as AI – means a form of technology with multiple uses. As a result, it has become extremely valuable to a number of businesses across

AI innovation

Companies Leading AI Innovation in 2023

Artificial intelligence (AI) has been transforming industries and revolutionizing business operations. AI’s potential to enhance efficiency and productivity has become crucial to many businesses. As we move into 2023, several

data fivetran pricing

Fivetran Pricing Explained

One of the biggest trends of the 21st century is the massive surge in analytics. Analytics is the process of utilizing data to drive future decision-making. With so much of

kubernetes logging

Kubernetes Logging: What You Need to Know

Kubernetes from Google is one of the most popular open-source and free container management solutions made to make managing and deploying applications easier. It has a solid architecture that makes

ransomware cyber attack

Why Is Ransomware Such a Major Threat?

One of the most significant cyber threats faced by modern organizations is a ransomware attack. Ransomware attacks have grown in both sophistication and frequency over the past few years, forcing

data dictionary

Tools You Need to Make a Data Dictionary

Data dictionaries are crucial for organizations of all sizes that deal with large amounts of data. they are centralized repositories of all the data in organizations, including metadata such as