views:

231

answers:

3

Im using Reshaper keyboard shortcuts all the time and it helps a lot in everyday development.

But i constantly need to create new folders in my Visual Studio projects so this means -> move the mouse from keyboard, use the mouse, right-click the desired project, choose menu Add->New Folder, type folder name etc.

Its tedious!

Is there ANY way to do this via keyboard shortcut - to press keyboard combination, that will at once create folder in current project, and place cursor into TextBox to enter folder name and slam that Enter key and then continue?

+4  A: 

You can add a shortcut by yourself. Tools -> Options -> Environment -> Keyboard -> select "Project.NewFolder" and assign a shortcut.

Darjan
This works on my machine but with a caveat.You STILL have to use your mouse and click the project name under which you want to create folders under. So what I did was I would open up Solution Explorer thru ctrl+alt+L, move the focus to the project name using keyboard and create a new folder with a new shortcut created thru this answer.
Sung Meister
Works but only if you first use Ctrl-Alt-L to get to Solution Explorer then you can move trough the projects and choose where to create new folder, and then issue your shortcut. Im using Ctrl-Alt-C.Thanks
Roboblob
A: 

I don't think that there isn't one for folders like there is for everything else.

http://msdn.microsoft.com/en-us/library/xte2hh6a(VS.71).aspx#vxurfvisualstudio70globalshortcutkeysanchor1 has all the shortcuts for visual studio. There are shortcuts for adding new items just doesn't look like folders.

AutomatedTester
+3  A: 

Activate Solution Explorer (Ctrl-Alt-L) or Sync to Solution Explorer (Alt-Shift-L), then hit Alt-Ins (ReSharper Generate command).

Ilya Ryzhenkov
Yes this is better solution, but only if you use Resharper.
Roboblob