MartinM
MartinM

Reputation: 1806

Set Add Class shortcut key in Visual Studio

I used to used the shortcut Ctrl + Shift + C to add a new class in Visual Studio 2015. This seems to have gone away when I'm using a different machine. How do I set this?

I've looked in Options > Environment > Keyboard but I can't see anything obvious...

Upvotes: 43

Views: 31941

Answers (2)

Damian
Damian

Reputation: 2852

Navigate to Tools >> Options >> Environment >> Keyboard, search for commands containing Project.AddClass and setup the shortcut you want

Steps to setup a shortcut

  1. Search any command like AddClass in Show commands containing box
  2. Select a desired command
  3. Click on the blank Press shortcut keys box
  4. Press desired key / key combination for shortcut using your keyboard

screenshot

Upvotes: 76

Adam Cox
Adam Cox

Reputation: 3681

Also, see article Visual Studio Shortcuts and Add on Tools...

This article explains the same in more detail with some other interesting (and perhaps even relevant) points.

Upvotes: 7

Related Questions