是否有 Visual Studio 键盘快捷键可以在解决方案资源管理器中重命名文件?

发布于 2024-10-01 20:58:37 字数 137 浏览 0 评论 0原文

正如问题标题所示:是否有 Visual Studio 键盘快捷键(或一系列快捷键)可以在解决方案资源管理器中重命名文件?

我正在使用 VS2008,并通过右键单击解决方案资源管理器中的文件并选择“重命名”来手动执行此操作,但这在后面是一个痛苦。

As the question title says: Is there a Visual Studio keyboard shortcut (or series of shortcuts) to rename file in Solution Explorer?

I am using VS2008 and manually doing this by right-clicking on a file in the Solution Explorer and selecting 'Rename', but this is a pain in the behind.

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

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

发布评论

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

评论(3

梦萦几度 2024-10-08 20:58:37

取决于您的设置配置文件:

在 C# 配置文件中,F2 执行此操作。

您可以为任意键指定快捷键:

  • 工具 ->选项,展开环境并选择键盘
  • 在文本框中输入File.Rename
  • 将焦点放在“按快捷键”框上,然后点击“要分配的键”
  • 单击分配

Depends on your settings profile:

In the C# profile, F2 does this.

you can assign a shortcut to any key:

  • Tools -> Options, Expand Environment and select Keyboard
  • Enter File.Rename into the text box
  • Put the Focus on the "Press Shortcut keys" box and hit 'the key you want to assign'
  • Click Assign
苦妄 2024-10-08 20:58:37

不使用 Refractor.Rename 选项并将键分配给 F2

No use option Refractor.Rename and Assign key to that say F2

十六岁半 2024-10-08 20:58:37

使用:文件实用程序扩展

命令 T 或控件 T > 文件实用程序: 重命名,就可以了。

Use: File Utils Extension

command T or control T >File Utils: Rename, that's it.

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