Use Const (C++)
In This Article
Converts a macro that declares an alias for a primitive expression into a const declaration.
#Availability
Available from the context menu or via shortcuts:
- when the cursor is anywhere within a #define preprocessor macro.
#Examples
│#define Width 20
Result:
int const Width = 20;│