Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS 2008 macros disabled

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.

What could be happening?

Thanks very much!

RobR

like image 363
ROBERT RICHARDSON Avatar asked Mar 12 '26 08:03

ROBERT RICHARDSON


1 Answers

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.

like image 57
Peter Macej Avatar answered Mar 16 '26 16:03

Peter Macej