Changing the Value of the Visual Studio 2017 User Macro

Asked 2 years ago, Updated 2 years ago, 45 views

I am using Visual studio 2017.

I added a user macro in the project file and set the value.
The user macro was added to the project file by adding the following two lines to the project file:
Enter a description of the image here

US>The macro was created in the project file with the intention of making it possible to modify one of the frequently used keyword modifications.

Could you tell me how to change this value in the properties dialog?
https://docs.microsoft.com/ja-jp/cpp/build/working-with-project-properties?view=vs-2019
See
Edit
with the action of

I don't know how to change that value.

Please let me know

Edit → Macro and transition screen are shown below.
Image Description
Enter a description of the image here

In the above picture, the selected state is the newly added macro.
I want to change the value of this macro.

Property Manager Enter a description of the image here

visual-studio

2022-09-30 17:06

1 Answers

If you follow the reference article to the bottom, you will see the following items:
You should be able to change the macro values that you added in this same procedure.

To create a user-defined macro

View Property Manager
View Property Manager

US>Display user macros in the Properties page dialog box
User Macro Display in Properties Page Dialog Box

US>Macro Edit Dialog Display (Double-click the Macro Name & Value column in the dialog above)
Macro Edit Dialog Display

First Additional Results
First Additional Results

After editing an existing value
After editing an existing value

If you cannot choose to add user macros, the following will apply:

User-defined macros

User-defined macros are stored in the properties sheet. If your project does not already contain a property sheet, you can create it by following the instructions in Share or reuse settings for your Visual Studio project.

Share or reuse settings for Visual Studio projects
To create a property sheet


2022-09-30 17:06

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.