You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Feature Request: Allow outline panel to show access specifier (i.e. private, public, protected) #7120
I found #3117 and microsoft/vscode#113845 discussing similar problem. Actually I only want some extra small, grey text showing private or public beside the names of class members, just like what "declaration" does now.
Screenshots
Displaying other keywords, such as override, virtual would also be helpful.
Looks like the private/public data isn't immediately available with our current implementation so we'd have to investigate how to get that from our database.
HO-COOH Thanks for you comment -- it made me realize that VS had it, so the data must be easily obtainable in our database, and I was able to locate it when I looked again.
FYI, this only works in the definition of the class/struct, and the scope modifiers don't appear in the implementation of methods that are in a separate .cpp file (handling that case would probably be a VS bug since they don't even support that).
Activity
sean-mcmanus commentedon Mar 8, 2021
Looks like the private/public data isn't immediately available with our current implementation so we'd have to investigate how to get that from our database.
github-actions commentedon May 11, 2021
This feature request is being closed due to insufficient upvotes. When enough upvotes are received, this issue will be eligible for our backlog.
HO-COOH commentedon May 18, 2021
It's kind of related to #1955
In VS, there will be a lock icon on private/protected member, in both the object view and the auto completion pop-up.

Would be nice to see in vscode too.
github-actions commentedon May 19, 2021
This feature request has received enough votes to be added to our backlog.
sean-mcmanus commentedon May 20, 2021
HO-COOH Thanks for you comment -- it made me realize that VS had it, so the data must be easily obtainable in our database, and I was able to locate it when I looked again.
Icons are being tracked by microsoft/vscode#113845
sean-mcmanus commentedon May 26, 2021
private/protected labels are shown with https://github.com/microsoft/vscode-cpptools/releases/tag/1.4.0-insiders3 (public is the default and is not shown).
sean-mcmanus commentedon May 27, 2021
FYI, this only works in the definition of the class/struct, and the scope modifiers don't appear in the implementation of methods that are in a separate .cpp file (handling that case would probably be a VS bug since they don't even support that).