VS 2008 宏已禁用 [英] VS 2008 macros disabled

查看:11
本文介绍了VS 2008 宏已禁用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

突然间,我的宏在 MS Visual Studio 2008 中没有运行.例如,为了确保我们不太关心 Unicode,我们将所有硬编码字符串包装在 _T() 中.所以,我创建了一个名为InitializeString"的小宏.它所做的只是输入_T(""),然后将光标向后移动两个空格,使其位于引号之间.我将此宏分配给 Ctrl/Shift/S 组合.这非常有帮助.但是突然间,我按了 Ctrl/Shift/S 并没有任何反应!我尝试打开宏资源管理器,右键单击宏,然后选择运行.依然没有.我尝试录制一个临时宏,它只包含输入一串s"s.当我按下 Ctrl/Shift/P 播放它时,VS 2008 想了一会儿,就像它通常在第一次调用宏时一样,然后 - 什么都没有.

Suddenly, my macros are not running in MS Visual Studio 2008. For example, to ensure that we don't care too much about Unicode or not, we wrap all hardcoded strings in _T(). So, I created a tiny macro named "InitializeString". All it does is to enter _T(""), and then move the cursor back two spaces so it's between the quotation marks. I assigned this macro to the Ctrl/Shift/S combination. It's been extremely helpful. But suddenly, I hit Ctrl/Shift/S and nothing happens! I tried opening the macro explorer, right-clicking on a macro, and selecting Run. Still nothing. I tried recording a temporary macro that just consisted of typing a string of "s"s. When I hit Ctrl/Shift/P to play it back, VS 2008 thought about it for a moment as it usually does the first time a macro is invoked, and then -- nothing.

我检查了我的选项,并选中了允许宏运行"框.

I checked my options, and the "Allow Macros To Run" box is checked.

会发生什么?

非常感谢!

罗伯R

推荐答案

这是一个由最近的 Windows 更新引起的已知问题.请参阅 Visual Studio 2010 宏在 2014 年 2 月 Windows 更新后停止工作了解如何修复它.

This is a known issue caused by a recent Windows update. See Visual Studio 2010 Macros Stop Working after February 2014 Windows Update for solutions how to fix it.

这篇关于VS 2008 宏已禁用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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