Questions tagged [visual-studio-macros]

A macro is a series of commands and instructions that you group together as a single command to accomplish a task automatically. Macros allow you to automate repetitive actions. Visual Studio includes the Macros integrated development environment (IDE), which is used solely for creating, manipulating, editing, and running macros. The Macros IDE is separate from the Visual Studio IDE.

The Visual Studio Macros integrated development environment (IDE) has the same look and feel as the Visual Studio IDE, but is separate from it. The Macros IDE includes the Code Editor and several tool windows. These windows function the same as their Visual Studio counterparts, except that they apply specifically to the code and projects within the Macros environment.

209 questions
3
votes
1 answer

DTE.ExecuteCommand("Edit.NextBookmark")

using VS2010 ANSWER thanks to Hans (since I'm to lowly to answer my own question for 8 hrs) Sub CreateBreakPoint() Dim doc As TextDocument = _ CType(DTE.ActiveDocument.Object("TextDocument"), TextDocument) Dim point…
kevcoder
  • 883
  • 1
  • 15
  • 29
3
votes
1 answer

Debug Visual Studio 2010 tests using nunit-console and VS-macro

I'm trying to debug tests from visual studio using nunit-console using a VS-macro, but I'm having issues when attaching the debugger / IDE to nunit-console / nunit-agent. I do have the macro working, if I just want to run the test, the issue is only…
jasper
  • 3,424
  • 1
  • 25
  • 46
3
votes
0 answers

Visual studio mac Scrolling issue

With some applications the scroll bar freezes when scrolled, as you can see from the Gif, it will scroll but all the UI will stick, until the cursor is run over the top of it, this only happens in some applications such as Visual Studio, it use to…
Conor Drew
  • 91
  • 1
  • 7
3
votes
4 answers

Visual Studio 2010 Macro Hangs when launching a Dialog

I have written a Macro which launches a dialog where the user selects a value from a combo box. Unfortunately the dialog box shows and I get an hourglass for between 1 and 20 seconds. There are a couple of workaronds I have found which seem to…
openshac
  • 4,966
  • 5
  • 46
  • 77
3
votes
2 answers

Visual studio 2008 macro to get source code

I have a macro that opens a solution, connects to SourceSafe and downloads the latest version of each file inside the solution. To this point all works correctly. Now I want to execute devenv.exe with /command option to run this macro and close the…
Doliveras
  • 1,794
  • 2
  • 14
  • 30
3
votes
1 answer

$(TargetPath) not evalutated on loading macro?

I've a file custom.props where I define some macro to be used within the project. In the example, I've this: $(TargetPath) /noload /nosave /noexc /noft When I load the project, and I look at Properties,…
markzzz
  • 47,390
  • 120
  • 299
  • 507
3
votes
1 answer

Is there an API Style reference for Visual Studio Macros

I would like to automate some common tasks that I do using Visual Studio Macros but I can't find a decent API reference for visual studio objects accessible through macros. Does such a think exist? Or is there a way I can find out what I need with…
eaglestorm
  • 1,192
  • 1
  • 13
  • 32
3
votes
2 answers

VBA clear formatting from selected paragraph

Having a lot of trouble with this macro: ActiveDocument.CopyStylesFromTemplate NormalTemplate.FullName With Selection .Style = ActiveDocument.Styles("Normal") .Range.HighlightColorIndex = 0 .Font.Shading.Texture =…
pavja2
  • 397
  • 3
  • 9
  • 20
3
votes
3 answers

Is there a way to record and replay coding in visual studio 2012?

I'm going to do demo based presentation. So what I want is prerecord(not a video record) my demo and replay while the I'm doing the presentation. Pre-record and play as in save code segments and generated some kind of list and then when I click on…
3
votes
1 answer

Using a #define in build output name in Visual Studio

I'm using Visual Studio 2010 for a C/C++ project. As far as version numbers go I like to have a revision and build date; for example "Project 1.0 R2 Apr 21 2013". I display this at startup, so I can easily tell if someone is running an old version.…
darda
  • 3,597
  • 6
  • 36
  • 49
3
votes
1 answer

Making a macro to generate a custom show in Powerpoint

I want to make a macro for PowerPoint, to generate a custom show, containing all the slides from my PowerPoint but in random order. How would I do this? I want to be able to run it and create different custom shows each time. It's been 3 years since…
Frames Catherine White
  • 27,368
  • 21
  • 87
  • 137
3
votes
3 answers

Multiplying an integer with a currency in Excel VBA

In my excel table i have one row (5th row) as number of items and another (6th row) as the price of the items. For example i want to multiply 200 with $56.50 but I am having a problem with this script. Can anyone please help. Sub calcprice() …
user1796681
  • 75
  • 1
  • 10
3
votes
1 answer

Getting word message box contents using c#

I have a c# application that is opening a word document, running a .bas macro, and closing word. All of that works fine. The macro generates 2 message box dialogs with the result of the macro. I want to communicate these messages to my c#…
Christina
  • 33
  • 3
3
votes
1 answer

Visual Studio macro to navigate to T4MVC link

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…
shannon
  • 8,664
  • 5
  • 44
  • 74
2
votes
1 answer

How can I write a VS macro that copies text between files?

I've asked this question on three different forums and no one can figure it out. I'm trying to write a macro in VS2010 that will copy some code around. So, given this setup: public class foo { //[source1] public overrides string ToString()…
MrEff
  • 89
  • 2
  • 11
1 2
3
13 14