Share via


Assigning Key Sequences to Add-in Commands Visually

Home Page (Add-ins)OverviewHow Do I ... TopicsFAQReference

If you assign a key sequence to an add-in command, you can carry out that command by pressing the keys in that sequence. You can assign this key sequence through the Visual C++ user interface.

To assign a key sequence through the user interface

  1. Connect the add-in to the development environment.

  2. On the Tools menu, click Customize.

  3. Click the Keyboard tab.

  4. In the Categories box, click Add-ins.

  5. In the Commands box, select the add-in command you want to assign.

  6. Go to the Press new shortcut key box by clicking inside it.

  7. Press the key sequence you want to use for the add-in command.

  8. Click the Assign button.

    Visual C++ assigns that key sequence to the command.

Additionally, Visual C++ provides other ways of using key sequences to customize your desktop environment. For details, see Overview: Customizing Visual C++.

See Also   Assigning Key Sequences to Add-in Commands Programmatically, Creating Toolbar Buttons for Add-in Commands Programmatically