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

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

问题描述

突然,我的宏不在MS Visual Studio 2008中运行.例如,为了确保我们对Unicode不太在意,我们将所有硬编码的字符串都包装在_T()中.因此,我创建了一个名为"InitializeString"的微型宏.它要做的就是输入_T("),然后将光标向后移动两个空格,使其位于引号之间.我将此宏分配给Ctrl/Shift/S组合.这非常有帮助.但是突然间,我按了Ctrl/Shift/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.

可能会发生什么?

非常感谢!

RobR

推荐答案

这是由最近的Windows更新引起的已知问题.参见 Visual Studio 2010宏在2014年2月Windows Update之后停止工作,以获取解决方案.

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天全站免登陆