208
questions
1
vote
2
answers
1k
views
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 ...
0
votes
1
answer
966
views
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, ...
0
votes
0
answers
610
views
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....
0
votes
1
answer
111
views
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 ...
0
votes
1
answer
205
views
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 ...
0
votes
1
answer
269
views
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 ...
3
votes
0
answers
94
views
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 ...
-1
votes
1
answer
527
views
Define macro using _Generic gives typename not allowed
I am trying to define a generic macro, which I intend to use with exception handling while debugging the code. When I try to compile the code below, it says typename not allowed.
I am a noob when it ...
0
votes
0
answers
441
views
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 ...
1
vote
1
answer
58
views
Dangers with unscoped multiline MACROS
Is there a way to protect this MACRO from unscoped if/for statements?
#define FOO(X, Y, ...) X->bar(_##Y->thatVar, __VA_ARGS__);\
post_op(X, Y)
The order of bar and post_op is important and ...
0
votes
1
answer
2k
views
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 ...
0
votes
1
answer
67
views
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: https://marketplace....
1
vote
2
answers
286
views
Insert new line with macros on Visual Code
The React Native Hot Reload on the device doesn't work fine all the time, according to the code you are working with, so we have to reload the app.
Therefore, I'm writing a code snipet to reload my ...
0
votes
0
answers
46
views
How to detect what subsystem is set? [duplicate]
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(...
5
votes
5
answers
11k
views
'CSC : error CS1902: Invalid option 'portable' for /debug; must be full or pdbonly'
I get this error continuously on mac VS 7.4.3 when trying to run simple web form.
CSC : error CS1902: Invalid option 'portable' for /debug; must be full or pdbonly
I have tried manually updating ....
3
votes
1
answer
531
views
$(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:
<VST2_32_COMMAND_ARGS>$(TargetPath) /noload /nosave /noexc /noft</...
0
votes
1
answer
306
views
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, ...
0
votes
2
answers
103
views
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("...
0
votes
1
answer
275
views
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 ...
-3
votes
1
answer
923
views
How to use a constant value in a function after getting input from user
So here I have a part of my code where I define macros to set the identifier MIN_BIT to a value based on user input:
#define MIN_BITS(n) 1*n
int MIN_BIT = MIN_BITS(n);
And then I take user input for ...
2
votes
1
answer
926
views
How to give a time delay in Visual Studio macros
Recently I updated my Visual Studio and start using the extention Macro Explorer.
I tried to use one of the sample macros "removes and sorts all", but I realized if I have a open documents, it doesn'...
0
votes
1
answer
297
views
Can I dynamically jump over a line of code without recompiling in Visual Studio using breakpoints?
I can manually skip lines of code by setting a breakpoint, moving the execution cursor and hitting continue.
Is there a way to configure Visual Studio, perhaps with a macro, such that a specific line ...
0
votes
0
answers
120
views
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 ...
0
votes
2
answers
67
views
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 ...
0
votes
2
answers
121
views
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 ...
-1
votes
3
answers
47
views
Serial for unique entries in a column
Hi I have specific column with Header 'SHOE' which contains repetitive numbers ~50000 I would like to have adjacent column having serial number for each unique number. there can be a situation that ...
-1
votes
1
answer
2k
views
Using Excel to generate a Visio diagram - using 'select' method in IF statement
I am currently integrating Excel with Visio to auto-populate some elements diagrammatically. I have got so far with this effort but have got stuck between the documentation, macro recordings and ...
2
votes
1
answer
866
views
How to change from keyboard events to mouse events
The code below been programmed to do keyboard event's listening, but I want to change it to listen to mouse buttons. For example, Instead of feeding fast with Q I want it to be with right mouse button,...
0
votes
1
answer
224
views
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 ...
0
votes
0
answers
29
views
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 ...
1
vote
0
answers
134
views
Rename Namespaces programmatically
I tried this code in visual studio 2010, to rename Namespaces, but his do nothing
public void RenameNamespaces()
{
foreach (EnvDTE.Project aProject in DTE.Solution.Projects) {
if (...
1
vote
0
answers
103
views
Access nested options dialog in EnvDTE
I'm trying to use EnvDTE to change a Visual Studio option.
The EnvDTE object exposes the Properties collection to do this, and for example, to access the options exposed in the VS configuration ...
1
vote
1
answer
2k
views
How to select range of cells, from first non-black to last non-blank cell (VBA)?
I am attempting to export tables from excel workbooks to pipe-delimited txt files which are named in the same manner as the corresponding sheet. The issue is that I am not able to get my macros to ...
-1
votes
2
answers
58
views
VB code for comparision of two rows based on a key column
I have a testing requirement which has a lot of rows of data in two tabs.
One row from Sheet1 hast to be brought to Sheet2 based on Employee Name and inserted below the row with the matching ...
1
vote
1
answer
2k
views
VS 2015 shortcut for "GoTo Region" #region / #endregion
Visual studio 2012 was having a working keyboard shortcut for moving to and fro between #region and #endregion.
Ctrl + ]
This was not documented anywhere and this was indeed a keyboard shortcut for ...
0
votes
1
answer
69
views
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.
...
0
votes
0
answers
198
views
Cannot locate certain Microsoft Build command Macro definitions
I am working on some legacy Visual C++ projects, trying to bring the code and libraries up to the present day, and am getting a flood of link errors. In my investigation into the problem, I am trying ...
0
votes
1
answer
80
views
Excel VBA macros does not find matches
I have a macro set-up in a Excel workbook; its objective is:
1. In Sheet1, to search a table for a specific value in a column.
2. If that value is found, then it must copy the entire line to Sheet2.
...
0
votes
1
answer
617
views
Cannot find VCCLCompilerTool in VS2015 macro (using Visual Commander)
I am using Visual Commander (from https://vlasovstudio.com/visual-commander/) to port some macros for manipulating C++ projects from VS2010 to VS2015. Things seem to work OK (I can access solutions, ...
0
votes
2
answers
2k
views
Macros with Visual Studio 2015
I downloaded the free version of Visual Studio 2015. It is called Visual Studio Community 2015. It is said that it is the full version. But I don't see macros. So I tried installing an extension from ...
0
votes
0
answers
80
views
Random normal distubution
I have a csv File that looks like :
subjects, WeightedAverage, WeightedStandardDev, NumberofExams,
MathMark, 1.5, 0.2, 5,
PhysicMark, ...
1
vote
1
answer
769
views
incremental average using excel
I need to take the average of every 2 point increment, my data is in columns "a", as an example , and the average in column "b"
a1 b1=0
a2 b2=a1
a3 b3=average(a1,a2)
a4 b4=average(a2,a3)
a5 b5=...
0
votes
1
answer
133
views
How can I automate updating NuGet packages and building a solution in Visual Studio
Here is my workflow.
Open Package Manager Console
Update-Package
Build Solution
Check into Plastic Source Control
Build in Teamcity
The problem is I keep forgetting to do #3! This is key because ...
0
votes
2
answers
753
views
Format Excel sheets export by JIRA-(JIRA custom reports)
I need to generate custom report in jira with transition time tracking details.
this jira plugin can generate the time tracking details. but I need to add these time tracking details to the jira ...
1
vote
2
answers
742
views
Discatenate in microsoft excel
I have a list of IP addresses, lets say as follow:
192.168.1.1
192.1688.2.1
192.168.3.1
Now I would like to write a macro in excel where when I enter an IP address in a column, for instance 192.168....
0
votes
1
answer
81
views
How to create a new configuration using External tools in WebStorm
I am creating a multi tenant client mobile(Cordova) application. I want to copy the appropriate client files from a folder to the project in deployment time.
I am using WebStorm IDE for development....
8
votes
2
answers
12k
views
Is there a better way to pass formatted output to OutputDebugString?
Typically, when I need to do debug output in Windows, I use the following C code segment:
#ifdef _DEBUG
#define DBGPRINT( kwszDebugFormatString, ... ) \
{ \
wprintf_s( L"[%s:%d] ", __FUNCTIONW__, ...
0
votes
0
answers
70
views
C# Code searching the assigned values
I am running into a strange problem with existing code in C# Windows application.
The architecture of the code is in such a way that a single collection contains multiple properties. This gets ...
-4
votes
1
answer
2k
views
I cannot find how to record a macro in Powerpoint 2013
I want to be able to change the default Playback start option from On Click to Automatically, and move the audio horn icon from the middle of the slide to the lower right, and make sure that Timings ...
1
vote
0
answers
335
views
macro definition that would differentiate static and non static function
Suppose I have two functions, one static and one non static as follows,
#define PRINT_INFO(__FUNCTION__,...) cout<<__FUNCTION__<<__VA_ARGS__
void static fun1();
void fun2();
fun1(){
...