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

发布于 2024-07-27 04:19:48 字数 258 浏览 4 评论 0原文

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

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

这很繁琐!

有没有办法通过键盘快捷键来做到这一点 - 按键盘组合,将立即在当前项目中创建文件夹,并将光标放入文本框中输入文件夹名称并按下 Enter 键,然后继续?

I'm using Resharper 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.

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

沉溺在你眼里的海 2024-08-03 04:19:48

您可以自己添加快捷方式。 工具选项环境键盘 → 选择Project.NewFolder并分配一个捷径。

You can add a shortcut by yourself. ToolsOptionsEnvironmentKeyboard → select Project.NewFolder and assign a shortcut.

浮华 2024-08-03 04:19:48

Altvp 用于激活解决方案资源管理器。

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

Altpd 创建新文件夹

Alt, v, p to activate solution explorer.

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

Alt, p, d to create the new folder

小帐篷 2024-08-03 04:19:48

激活解决方案资源管理器 (Ctrl + Alt + L) 或同步到解决方案资源管理器 (Alt + Shift + L),然后点击 Alt + Ins(ReSharper 生成命令)。

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

明天过后 2024-08-03 04:19:48

我不认为文件夹没有像其他所有东西一样的文件夹。

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

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.

七禾 2024-08-03 04:19:48

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

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

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

*理论上,该按钮可以添加到解决方案资源管理器工具栏本身。 但这需要 构建VSIX 可扩展性项目

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文