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

Capture Macro in Catia 5

I need to write a macro in Catia 5. My aim is to convert cgm files to png at the desired background color and at desired resolution. Manually I am doing it by Capture->image->options(setting resolution and background color)-> save as . I need to do…
0
votes
3 answers

Regex for find all start of method lines in .cs files in visual studio

Want to add some console.writeln's to the first line of every method in my class (c#, cs file in visual studio 2010). How to identify using Regex so i can search replace? Before search replace: void method1(int a) { } After search replace: …
Gullu
  • 3,477
  • 7
  • 43
  • 70
0
votes
2 answers

How to Write a Visual Studio Macro Event to get user's typed Code?

i'm looking for a way to write a macro event to parse user's code. for example when programmer writes some specific code this event will parse the code line and if matches a regular expression will insert some additional codes on active…
Mehdi
  • 5,435
  • 6
  • 37
  • 57
0
votes
1 answer

How can I run old VB Macros in recent Visual Studio?

I need to run an old visual studio macro which is in VB. But I've found out macros are no longer supported natively in Visual Studio, but there is an extension for Macros here:…
Paiman Roointan
  • 514
  • 5
  • 17
0
votes
0 answers

How to detect what subsystem is set?

I want to have two main functions for GUI and Console mode. Are there macros to detect what is set in Linker->System->SubSystem? #ifdef ... int main(int argc, char *argv[]) { //... } #else int main(int argc, char *argv[]) { //... } #endif _CONSOLE…
Ufx
  • 2,595
  • 12
  • 44
  • 83
0
votes
1 answer

DTE -> Getting Matching Brace in Visual Studio Macros?

Is there any function available to get the position of the matching brace/quote/parenthesis/bracket for the current selection? (I'm looking for the macro equivalent of the Edit.GotoBrace function.)
user541686
  • 205,094
  • 128
  • 528
  • 886
0
votes
1 answer

Replacement for VS + Resharper

I'm a long time c# dev, who are currently looking into possibly expanding to java, or typescript. I am currently relying a lot on the efficiency of resharper/VS to do a lot of manual things for me, such as: Ctrl + t to search for file/class/method…
0
votes
2 answers

countif in macros gives 0 results

​I was trying to do a countif in a column B named First Name that has different names in it but the results is returning 0. Here is my code: Public Sub counting() Dim lastcell As String Range("B2").Select Selection.End(xlDown).Select lastcell =…
Jonathan
  • 162
  • 1
  • 11
0
votes
1 answer

Can't create Android SDK25(7.1) virtual device. (VS mac)

I already understand that I should download a right System image to use Android virtual device. And it works fine on SDK24(7.0). I downloaded SDK 24 and Intel x86 Atom_64 System Image. I am able to create SDK 24 AVD and works fine. But I tried same…
0
votes
0 answers

Visual Studio 2017 - Collapse all documentation sections

I'm working with Visual Studio 2017 and I was wondering if there is a way to collapse all the documentation sections only ? There's a lot of them and most of the time I find that it's not useful to have them as the person who wrote the code. I…
Antoine Thiry
  • 2,362
  • 4
  • 28
  • 42
0
votes
2 answers

Excel macro to change the field data type string to long

I have a function which returns value as string. Function Trimcell(cellvalue As varnant) As String Trimcell = Replace(CStr(cellvalue), " ", "") End Function I want to change the data type string to long . Any help.
0
votes
2 answers

Excel Macro to Trim a cell value

I have to Trim a cell value thru macro. I have a cell where I am getting a value like "20170411 675432". Here you can see there a space in between 1 and 6. I want to remove that space so that I can get the field value as "20170411675432" Thanks
0
votes
1 answer

project.json > scripts> precompile - use macro value in script

What I want to do: Execute some batch file in the pre-build event of a .NET core library. The batch is located in the project directory, and expects the target path as a parameter. I have found a way to do this in the context of a project.json…
0
votes
0 answers

Where can I find reference documentation and tutorials for new JavaScript based macros?

Microsoft has decided to bring back Macros in VS 2013+. Great and a big thank you. But they use now JavaScript instead of VB so being the 1% of developers that has been using them ever since, I have to rewrite my treasures into JavaScript now. I…
pb_SKAT
  • 163
  • 2
  • 14
0
votes
1 answer

How can I compare .text and .data segments of a .dll against the same ones in a different .dll?

I have a 20+ yo .dll, written in C that none of my colleagues want to touch. With good reason, it uses macros, macro constants and casting EVERYWHERE, making the symbol table quite lean. Unfortunately, I have to sometimes debug this code and it…
Adrian
  • 10,246
  • 4
  • 44
  • 110