How many productive Microsoft Visual Studio shortcut keys have you learned but managed to forget? I used to have a shortcut key created using AutoHotkey that would allow me to get to a Word document with a collection of (less often used) shortcuts as a cheat sheet.
I recently decided it might be better to just create an option right in the Visual Studio Menu bar that would allow me to gain access to that same Word document with one click. And you can do this with a Word document, Excel spreadsheet, OneNote, etc. All you have to do is create an external menu item.
Here are the steps:
- Start by creating a Word document (or other file) that will contain your notes (your cheat sheet).
- Next, from within Visual Studio go to Tools –> External Tools.
- Create a new menu and note what position it is on the list of entries. In my example below I called my shortcut ‘Shortcuts’ and it’s in the 4th position. (We’ll need that position number for later).
- Fill in the appropriate Command and Arguments. In this case I am using Word (winword.exe). Then click OK.
- Now we need to add it to our menu bar. Right click on the space next to the Help menu item and then at the bottom click on Customize.
- Click on the Commands tab and then click on Add Command.
- Scroll down to Tools on the left plane and then select the External Command and the proper number from step 3.
- Once Selected, highlight the External Command and click on the Move Down button until it’s at the end of your menu items. I put mine next to the Help menu, of course you can place it anywhere you’d like.
Now when I click on my ‘Shortcuts’ on my Visual Studio menu, my document will launch for quick access.
Now you have a quick way of getting to your own cheat sheet of shortcuts. And of course the more you use a shortcut key the less likely you’ll need to refer to a cheat sheet!