Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 429
MartinM Avatar asked Feb 14 '17 16:02

MartinM


People also ask

How do I set keyboard shortcuts in Visual Studio?

Customize a keyboard shortcutOn the menu bar, choose Tools > Options. Expand Environment, and then choose Keyboard.

What is Ctrl K in Visual Studio?

Edit.SelectionCancel. Surround with. Ctrl+K, Ctrl+S. (available only in Visual Studio 2019 and earlier)

What is the shortcut key for Set button in VB net?

if you want to use just one Key you can do this via the "text" property. if you set the button text to My&Button then "b" will be the shortcut. if you want to use just one Key you can do this via the "text" property. if you set the button text to My&Button then "b" will be the shortcut.


2 Answers

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

enter image description here

like image 118
Damian Avatar answered Sep 19 '22 09:09

Damian


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.

like image 40
Adam Cox Avatar answered Sep 18 '22 09:09

Adam Cox