是否可以在Visual Studio中以编程方式清除Ouput窗口? [英] Is it possible to programmatically clear the Ouput Window in Visual Studio?

查看:146
本文介绍了是否可以在Visual Studio中以编程方式清除Ouput窗口?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您是否知道在Visual Studio中以编程方式清除输出窗口中的在调试期间添加一些代码?

Do you know a way to add some code that, during debug, programmatically clear the Output Window in Visual Studio?

或者你知道一些快捷的选择,就像一个关键的快捷方式?

Or do you know some fast alternative like a key shortcut?

推荐答案

宏:

Sub ClearOutputWindow()
    DTE.ExecuteCommand("Edit.ClearOutputWindow")
End Sub

只需为此分配热键​​。

Simply assign a hotkey to this.

编辑:其他可能性

这篇关于是否可以在Visual Studio中以编程方式清除Ouput窗口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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