键盘快捷键只建启动项目? [英] Keyboard shortcut to build only startup project?

查看:212
本文介绍了键盘快捷键只建启动项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图找到一个快捷键只建启动项目在VS2008中。

I've tried to find a keyboard shortcut to build only the startup project In VS2008.

我只找到一个可配置的快捷方式构建一个当前查看的项目,这是没有那么好。

I only found a configurable shortcut to build the project which is currently viewed, which isn't as good.

任何想法?

感谢。

推荐答案

这应该宏观做到这一点:

That macro ought to do it:

Sub Build_Startup()
    DTE.ToolWindows.OutputWindow.Parent.Activate()
    Dim sb As SolutionBuild2 = DTE.Solution.SolutionBuild
    For Each item In sb.StartupProjects
        sb.BuildProject(sb.ActiveConfiguration.Name, item, True)
    Next
End Sub

只是把在您的宏 - 使用宏IDE <大骨节病>替代 + <大骨节病> F11 ,并添加键盘映射到它(工具/自定义/命令/键盘,找到你在宏。命名空间的新命令),就这么简单。

Just put that in your macros - using the Macros IDE Alt + F11, and add a keyboard mapping to it (Tools/Customize/Commands/Keyboard, find your new command in the Macros. namespace), and you're all set.

这篇关于键盘快捷键只建启动项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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