-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Found this:
Sub SurroundWithAppendTag()
DTE.ActiveDocument.Selection.Text = ".Append(""" + DTE.ActiveDocument.Selection.Text + """)"
End Sub
But I can't seem to figure out how to loop through each line of text in the selection. Any thoughts?
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
When I save a file in Visual Studio 2005, I'd like to have a macro also run that updates a copyright (through a regular expression search and replace).
I'm not new to regular expressions, but I am new to VB/VBA and Visual Studio macros, so what I need help with specifically is:
getting a macro…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'd like to have a macro in Visual Studio 2005 that calls a DOS command and redirects the output (stdout and stderr) to a file. Just calling the command and "" redirecting it will not capture stderr, so there are two parts to this:
calling a DOS command
capturing both stderr and stdout to a file…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm trying some VS2005 IDE macros to modify a large amount of projects (~80) within a solution. Some of the properties I wish to set do expose a programmatic interface to 'default', but many others do not. Is there a generic way to set such properties to their default? (eventually meaning erasing…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I use T4MVC and I'm happy with it and want to keep it - it keeps down run time defects. Unfortunately, it makes it harder to navigate to views and content (a.k.a. Views and Links in T4MVC) though. Even using Resharper, I can't navigate to the referenced item:
T4MVC and Resharper Navigation
Can I…
>>> More