Dig into how to set shortcut keys for Visual Assist

  • 2020-04-01 23:39:38
  • OfStack

Visual Assist (hereafter referred to as VA) is an excellent plug-in tool for Visual Studio, especially in VS2005, which provides a lot of useful tools

Auxiliary functions. "Create Implementation", as shown below, is handy. < img Alt = image border = 0 border = 0 SRC = "/ / files.jb51.net/file_images/article/201305/201305171630244.png" >

But is it too annoying to click the mouse every time? It would be nice to have a shortcut.
After exploring, I found a way to set shortcut keys and Shared with you.
Here's how:

Visual Studio's "Tops" - "Customize" option. (Chinese version: tools - customization)

< img border = 0 SRC = "/ / files.jb51.net/file_images/article/201305/201305171630245.png" >

< img border = 0 SRC = "/ / files.jb51.net/file_images/article/201305/201305171630246.png" >
Select "Keyboard" in the "Customize" dialog box

< img SRC = "/ / files.jb51.net/file_images/article/201305/201305171630247.png" border = 0 width = 619 height = 480 >
Type "vassistx." in "Show commands containing:" to see all the shortcuts you can set

< img border = 0 SRC = "/ / files.jb51.net/file_images/article/201305/201305171630248.png" >
As shown in figure, can continue to input "vassistx. Refactorcr" in "Create Implementation", select "vassistx. RefactorCreateImplementation"

< img border = 0 SRC = "/ / files.jb51.net/file_images/article/201305/201305171630249.png" >
Click in the edit box at Press shortcut keys and a flashing cursor appears. Then Press the shortcut you want on the keyboard. Such as Ctrl + Alt + C

< img border = 0 SRC = "/ / files.jb51.net/file_images/article/201305/2013051716302410.png" >
The figure shows that this shortcut key has been assigned to debug.callstatck in the "Global" scope. You can also change another shortcut key that you haven't used before, however
          I think this is good, and VS can set the range of shortcut keys, I set it in the "Text Editor", where I don't need to call the Debug function.
          As shown, in "Use new shortcut", select "Text Editor"

          < img border = 0 SRC = "/ / files.jb51.net/file_images/article/201305/2013051716302411.png" >
Ah, the shortcut is gone after the selection.

< img border = 0 SRC = "/ / files.jb51.net/file_images/article/201305/2013051716302412.png" >
Press the button again, and then click the "Assign" button

< img border = 0 SRC = "/ / files.jb51.net/file_images/article/201305/2013051716302413.png" >
Press "OK" to confirm, and close the Customize dialog box.
At this point, the shortcut key also takes effect. Try it on.


Related articles: