Can't get a simple Visual Studio macro to work -


I am trying to find / change work in Visual Studio. I used the macro recorder and found the code below. When the macro is run, there is no effect in it. (I successfully tried quick replace and replace both with no files) I have no clue which is wrong. Can anyone help?

  Options Strictly Closed Options Clear Off Import System Import EnvDTE Import EnvDTE80 Import EnvDTE90 Import System.Diagnostics Public Module RecordingModule Sub CommaSpace () DTE.Find.Target = vsFindTarget.vsFindTargetFiles DTE Find.MatchWholeWord = False DTE.Find.Action = vsFindAction.vsFindActionFindAll DTE.Windows.Item ("{CF2DDC32-8CAD-11D2-9302-005345000000}") () 'Find and replace the DTE.Find.MatchCase. Active = false DTE .Find.Action = vsFindAction.vsFindActionReplaceAll DTE.Windows.Item ("Eigen3x3.cpp"). Active () DTE.Find.FindWhat = "," DTE.Find.ReplaceWith = "," DTE.Find.Target = vsFindTarget. VsFindTargetFiles DTE.Find.MatchCase = False DTE.Find.MatchWholeWord = False DTE.Find.MatchInHiddenText = True DTE.Find.PatternSyntax = vsFindPatternSyntax.vsFindPatternSyntaxLiteral DTE.Find.SearchPath = "Complete Solution" Find DTE.Find.SearchSubfolders = True DTE . Keep moddomaid documents open = false DTE. Find out Types of files = "" DTE Find out Results Place = vs. Find Resolutions tsLocation.vsFindResults1DTE.Find.Action = vsFindAction.vsFindActionReplaceAll (DTE.Find.Execute () = vsFindResult.vsFindResultNotFound) Then throw the new System.Exception ("vsFindResultNotFound") End End Sub End Module   

First of all that your macros still work and is not disabled after the February Windows update ..

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -