如果构建成功,如何使Visual Studio对我发出蜂鸣声? [英] How can I get Visual Studio to beep at me if a build succeeds?

查看:160
本文介绍了如果构建成功,如何使Visual Studio对我发出蜂鸣声?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通常,我需要重新编译,这需要一两分钟,因此我倾向于切换到Web浏览器以节省时间.有时,我忘了回头,而构建却在几分钟前就成功了.

Often, I need to recompile and it takes a minute or two, so I tend to switch to a web browser to kill that time. Sometimes I forget to look back and the build succeeded a few minutes before I noticed.

如果构建(针对项目或解决方案)成功完成而没有警告,是否有可能以某种方式让Visual Studio(只是UI版本,而不是命令行)向我发出蜂鸣声?

Is it possible to somehow get Visual Studio (just UI version, not command line) to beep at me if the build (for the project or solution) completes successfully without warning?

在调试过程中遇到第一个断点时也会发出哔哔声,因为有时我也需要等待一两分钟才能做到这一点.

Also helpful would be a beep when the first breakpoint is hit while debugging, since sometimes I have to wait a minute or two for this to happen as well.

也许我需要为此编写一个宏吗?某处有隐藏设置吗?

Do I need to write a macro for it, perhaps? Are there hidden settings somewhere?

推荐答案

我在系统声音"中看到一个名为"Microsoft Visual Studio宏"的类别,其中包含三种声音:Build Canceled,Build Failed和Build Succeeded.我猜想它们是从默认安装的示例宏中到达的.可以尝试在VS中按Alt-F8并在宏中四处浏览.

I'm seeing in my System Sounds a category called "Microsoft Visual Studio Macros" that contains three sounds: Build Canceled, Build Failed, and Build Succeeded. I'm guessing they got there from the sample macros that get installed by default. Might try hitting Alt-F8 in VS and poking around in the macros.

我最喜欢的解决方案是VSBuildStatus.如果您使用的是Windows 7,它将在任务栏中显示生成进度(就像资源管理器对文件复制所做的一样).在构建失败时变为红色.必须具备.

My favorite solution is this one though: VSBuildStatus. If you've got Windows 7, it will show the build progress in the taskbar (like Explorer does with file copying). Turns red on a build failure. Must-have.

http://visualstudiogallery.msdn.microsoft. com/en-us/2A2293B4-1808-44AA-B030-661F6803D8A1

这篇关于如果构建成功,如何使Visual Studio对我发出蜂鸣声?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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