#pragma mark equivalent in Visual Studio for C++? #pragma mark equivalent in Visual Studio for C++? xcode xcode

#pragma mark equivalent in Visual Studio for C++?


You can use #pragma region:

#pragma region foo// some code ...#pragma endregion foo


Apparently, it is not in Visual studio 2015 and I don't think it will be in the near future. [Reference]

Thanks for taking the time to share this suggestion. This item has been around for a couple of versions of Visual Studio and we haven’t acted on it. Looking at the VS “15” plans, we’re not going to take action on this item, so we’re going to close it. If the suggestion is still relevant, please either take a look to see if there’s another suggestion that’s similar that you can vote on, or open a new suggestion.


This is kind of an ugly solution but still better than nothing :D :

#if falseint ________visualization________;#endif

The function listing displays variables with a different mark than methods + the underscores visually form a line so you can easily find the mark and it "nicely" segments the listing.

Note: tested in VS Code, not in Visual Studio itself, I can't see any variables in your listing so in the case that VS listing doesn't display the variables you will need to use void ________visualization________(){} instead.