Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS2012 shortcut add new class file

Tags:

Hi have tried to google this, but it is not giving any working tips.

Is there anybody outh there that can tell me the keyboard shortcut for adding a new class file in Visual Studio 2012?

Edit: My setup was a fresh install of: Microsoft Visual Studio 2012 Pro, with setup C#

like image 914
user1689516 Avatar asked Oct 10 '13 09:10

user1689516


People also ask

What is the shortcut key for adding an object?

Insert an object Press ALT, N, and then J. Do one of the following. Press DOWN ARROW to select an object type, and then press ENTER to create an object. Press DOWN ARROW twice to select the Create from File tab, and then type the file name of the object that you want to insert or browse to the file.


2 Answers

You can define it by your own via Tools -> Options -> Enviroment -> Keyboard -> Project.AddClass

enter image description here

like image 125
Micha Avatar answered Sep 18 '22 07:09

Micha


Select the project in which you want to add Class and press SHIFT+ALT+C. To add a New Item, use Ctrl+Shift+A

You should be using Visual C# 2005 keyboard scheme in Visual Studio to have this working. If you are using other keyboard scheme, go to run and type devenv.exe /resetsettings and when you restart Visual Studio it will ask a default keyboard scheme to use where you can select Visual C# scheme and then the keyboard shortcuts should be working.

For more list of VS 2012 Keyboard shortcuts refer this

like image 44
VSS Avatar answered Sep 19 '22 07:09

VSS