Set Add Class shortcut key in Visual Studio

2020-06-08 09:13发布

问题:

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...

回答1:

Open Options -> Environment -> Keyboard, search for commands containing Project.AddClass and set the shortcut you want



回答2:

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

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