在Visual Studio 2008的当前项目键盘快捷方式中是否有创建新文件夹?

时间:2023-01-07 20:41:43

I'm using Resharper keyboard shortcuts all the time and it helps a lot in everyday development.

我一直在使用Resharper键盘快捷键,它在日常开发中有很大帮助。

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.

但我经常需要在我的Visual Studio项目中创建新文件夹,这意味着 - >从键盘移动鼠标,使用鼠标,右键单击所需项目,选择菜单添加 - >新建文件夹,键入文件夹名称等。

It's 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?

是否有任何方法可以通过键盘快捷键执行此操作 - 按键盘组合,这将立即在当前项目中创建文件夹,并将光标放入TextBox以输入文件夹名称并猛击Enter键然后继续?

5 个解决方案

#1


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

您可以自己添加快捷方式。工具 - >选项 - >环境 - >键盘 - >选择“Project.NewFolder”并指定快捷方式。

#2


Alt, v, p to activate solution explorer.

Alt,v,p激活解决方案资源管理器。

Use the arrow keys to select the project to which you want to add the folder.

使用箭头键选择要添加文件夹的项目。

Alt, p, d to create the new folder

Alt,p,d创建新文件夹

#3


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

激活Solution Explorer(Ctrl + Alt + L)或同步到Solution Explorer(Alt + Shift + L),然后按Alt + Ins(ReSharper Generate命令)。

#4


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.

http://msdn.microsoft.com/en-us/library/xte2hh6a(VS.71).aspx#vxurfvisualstudio70globalshortcutkeysanchor1拥有visual studio的所有快捷方式。添加新项目的快捷方式只是看起来不像文件夹。

#5


I realize this is an old question, but I still feel your pain, and the solutions suggested here all require a lot of key-pressing (arrow keys, specifically; tedious, especially in a large solution).

我意识到这是一个老问题,但我仍然感觉到你的痛苦,这里提出的解决方案都需要大量按键(箭头键,特别是;单调乏味,特别是在大型解决方案中)。

The alternative that I have adopted: add a button to my main toolbar, and position it as close to the Solution Explorer as possible*. Now, with the mouse I can quickly select the Project then press the "New Folder" button. For me, this is easier than navigating through the context menu.

我采用的替代方案:在主工具栏中添加一个按钮,并尽可能靠近解决方案资源管理器*。现在,使用鼠标我可以快速选择项目,然后按“新建文件夹”按钮。对我来说,这比浏览上下文菜单更容易。

Instructions: From the little down-arrow at the left-end of the toolbar: Add or Remove ButtonsCustomizeAdd CommandProject ▶ "New Folder"

说明:从工具栏左端的小向下箭头:添加或删除按钮▶自定义▶添加命令▶项目▶“新建文件夹”

*theoretically, the button could be added to the Solution Explorer toolbar itself. But this requires building a VSIX extensability project.

*理论上,该按钮可以添加到Solution Explorer工具栏本身。但这需要构建一个VSIX可扩展性项目。

#1


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

您可以自己添加快捷方式。工具 - >选项 - >环境 - >键盘 - >选择“Project.NewFolder”并指定快捷方式。

#2


Alt, v, p to activate solution explorer.

Alt,v,p激活解决方案资源管理器。

Use the arrow keys to select the project to which you want to add the folder.

使用箭头键选择要添加文件夹的项目。

Alt, p, d to create the new folder

Alt,p,d创建新文件夹

#3


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

激活Solution Explorer(Ctrl + Alt + L)或同步到Solution Explorer(Alt + Shift + L),然后按Alt + Ins(ReSharper Generate命令)。

#4


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.

http://msdn.microsoft.com/en-us/library/xte2hh6a(VS.71).aspx#vxurfvisualstudio70globalshortcutkeysanchor1拥有visual studio的所有快捷方式。添加新项目的快捷方式只是看起来不像文件夹。

#5


I realize this is an old question, but I still feel your pain, and the solutions suggested here all require a lot of key-pressing (arrow keys, specifically; tedious, especially in a large solution).

我意识到这是一个老问题,但我仍然感觉到你的痛苦,这里提出的解决方案都需要大量按键(箭头键,特别是;单调乏味,特别是在大型解决方案中)。

The alternative that I have adopted: add a button to my main toolbar, and position it as close to the Solution Explorer as possible*. Now, with the mouse I can quickly select the Project then press the "New Folder" button. For me, this is easier than navigating through the context menu.

我采用的替代方案:在主工具栏中添加一个按钮,并尽可能靠近解决方案资源管理器*。现在,使用鼠标我可以快速选择项目,然后按“新建文件夹”按钮。对我来说,这比浏览上下文菜单更容易。

Instructions: From the little down-arrow at the left-end of the toolbar: Add or Remove ButtonsCustomizeAdd CommandProject ▶ "New Folder"

说明:从工具栏左端的小向下箭头:添加或删除按钮▶自定义▶添加命令▶项目▶“新建文件夹”

*theoretically, the button could be added to the Solution Explorer toolbar itself. But this requires building a VSIX extensability project.

*理论上,该按钮可以添加到Solution Explorer工具栏本身。但这需要构建一个VSIX可扩展性项目。