是否存在用于在Visual Studio中构建当前项目的标准键盘快捷键? [英] Is there a standard keyboard shortcut to build the current project in Visual Studio?

查看:83
本文介绍了是否存在用于在Visual Studio中构建当前项目的标准键盘快捷键?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道 Ctrl + Shift + B 启动了一个解决方案构建,但是我想要一个仅构建当前项目的快捷方式.自定义快捷键是我唯一的选择吗?

I know that Ctrl + Shift + B launches a solution build, but I would like a shortcut that just builds the current project. Is a custom shortcut my only option?

似乎自定义快捷方式是我唯一的选择,因为 Shift + F6 对我不起作用.

Looks like a custom shortcut is my only option as Shift + F6 does not work for me.

推荐答案

将快捷方式分配给"Build.BuildOnlyProject"命令在VS2008中似乎不起作用.

Assigning the shortcut to "Build.BuildOnlyProject" command doesn't seem to work in VS2008.

将快捷方式分配给" Build.BuildSelection ".如果您有一个包含多个项目的解决方案,并且从各个项目中打开了文件,则当前正在编辑的任何文件都将定义将分配的快捷方式用于"Build.BuildSelection"时将要构建的项目.

Assign the shortcut to "Build.BuildSelection". If you have a solution with several projects and files open from the various projects, whatever file you are currently editing will define the project that will be built when you use the assigned shortcut for "Build.BuildSelection".

当您单击生成"菜单选项时,您会知道键盘快捷键正在工作,并且您会在菜单本身上看到键盘快捷键.

You'll know the keyboard shortcut is working when you click the Build menu option and you see the keyboard shortcut on the menu itself.

btw-分配键盘快捷键时不需要重新启动/重新引导.

btw - a restart/reboot is not required when assigning keyboard shortcuts.

这篇关于是否存在用于在Visual Studio中构建当前项目的标准键盘快捷键?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆