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
0
votes
1 answer

Is there a simple way to create a custom VS action for personalised comments?

Feel free to massively re-word this question. Basically, I'm currently stripping out a huge portion of a very large framework - this involves A LOT of commenting. So I can find all of this later I am batch commenting and then copy-pasting a marker…
0
votes
1 answer

How to tile selected columns in an excel sheet into one big column, only selected

This question is in accordance to the following question: Visual Basic move all other columns to create one long column B I used the best answer: sub ss() Dim col As Range For Each col In Worksheets("Sheet1").Columns If (col.Column…
salomari87
  • 26
  • 3
0
votes
1 answer

Converting tabs in leading whitespaces to double spaces in Visual Studio macro

I'm trying to modify a VS macro I found on this site; the macro performs a transformation to a document when it is saved. I need the macro to transform the leading whitespaces such that each tab characters are replaced with two spaces but leave all…
methon.dagger
  • 505
  • 9
  • 28
0
votes
1 answer

Is there any option to add SpecFlow Extension on VisualStudio for MacOS?

Visual Studio for Mac has option to add extension from Visual Studio > Extensions... From the Extensions window, if I search Specflow and I see nothing is there. Is there any option to install Specflow extension on Visual Studio for Mac?
0
votes
1 answer

Visual Studio 2022 not working for Azure Functions

I can't seem to get Azure functions running for Visual Studio 2022 for mac. I am able to run the functions ok in Visual Studio Code. The functions come up ok in the terminal for Visual Studio 2022, but when I invoke the function I get this error: An…
0
votes
2 answers

Having trouble writing a simple VS2010 macro

I'm trying to write a simple visual studio 2010 macro to search the solution for a string (gotten from the clipboard) what I have so far: Option Strict Off Option Explicit Off Imports System Imports EnvDTE Imports EnvDTE80 Imports EnvDTE90 Imports…
Bwmat
  • 4,314
  • 3
  • 27
  • 42
0
votes
1 answer

Embed an macro to Excel 2007 xml

Anyone know if you can embed a macro in an xml file? I have an xml file that I create with a .net web application and it opens with Excel 2007, but would be nice to attach a macro to it as well. I want to attach a macro to this xml file…
User
  • 67
  • 2
  • 13
0
votes
0 answers

Visual Studio 2019 MSBuild replaces $(SolutionDir) with ".." for projects included from file system, but not for projects included from Git submodules

Visual Studio 2019 MSBuild replaces $(SolutionDir) with ".." for projects included from file system, but not for projects included from Git submodules. For instance, project file (Project0.csproj) below has 4 referenced projects. Project 1 and…
0
votes
1 answer

Visual Studio for Mac won't update - Xamarin

Weird issue here. I have Visual Studio for Mac. My mac is fully upto date on the mac sidel. I have updated to Xcode 12.5. I have selected the check for updates option in VSMac. I see that there are a bunch of updates for xamarin on my mac. I…
Wallace B. McClure
  • 1,165
  • 1
  • 15
  • 31
0
votes
1 answer

Combobox from Visual Studio Macros

When you need to debug a Website that hosts on IIS Express, you usually don't restart it all over again, every time when you need to rebuilt your code. You just attach VS to the process. And the macros script helps a lot: Public Module…
iLemming
  • 34,477
  • 60
  • 195
  • 309
0
votes
1 answer

How to trigger a Visual Studio Macro from the command prompt?

My requirement is quite simple. All I wish to do is copy the error list from Visual Studio and paste it in an excel sheet. But I want to do it from the command prompt. Let's assume that I have a Visual Studio macro that copies the error list. Now,…
0
votes
1 answer

How to "Select all and Copy" on the Error List of Visual Studio using Visual Studio2019 Macros

I know that we can do a Ctrl A + Ctrl C on the error list to copy all items in the error list. I want to automate this using Visual Studio Macros. DTE.ExecuteCommand("Edit.SelectAll"); is not working for me. It says "Command Edit.SelectAll is not…
0
votes
2 answers

Need suggestions for method to format c comment via a keystroke macro

for visualization, pretend the '_' is actually a blank. Consider the following /*! ____This_is_a_comment_about_a_function ____and_its_purpose ____and_arguments ____and_things_of_that_ilk */ What I would like to do is select that chunk of text,…
EvilTeach
  • 28,120
  • 21
  • 85
  • 141
0
votes
1 answer

Visual Studio 2008 macro question

I have been trying to write a short macro in Visual Studio that activates the FindSymbolResults (Constants.vsWindowKindFindSymbolResults), and then moves to the next item in the list (if anyway) and calls Edit.GotoReference on it. The first and…
endian
  • 4,234
  • 8
  • 34
  • 42
0
votes
0 answers

ACR not found In Xamarin Forms Android

Can someone help me with this. I know this question has been asked and being marked as solved a hundred of times. The type or namespace name 'Acr' could not be found (are you missing a using directive or an assembly reference?) (CS0246) I have…