I have not found this function. It is possible to use Qt Creator, move the cursor to the member variable, and then use the shortcut Alt + Enter and the option will appear. If there are many member variables to be defined in VS, you can use the class wizard function to create a class. If you don’t mind it, you can use the following macro definition
You can check this out at http://my.oschina.net/fjxy/blog/72106
I remember that C# in vs uses ctr+r+e to quickly generate attributes for fields. As for c++, it seems that the syntax is not necessary.
I have not found this function.
It is possible to use Qt Creator, move the cursor to the member variable, and then use the shortcut Alt + Enter and the option will appear.
If there are many member variables to be defined in VS, you can use the class wizard function to create a class.
If you don’t mind it, you can use the following macro definition
endif
Use as follows