missing function descriptions (IDE)

Viewed 130

i am currently learning c++ for uni. Currently using visual studio code (primarily), visual studio enterprise and visual studio community.

Im wondering if theres any way to make a description of functions show up when im typing them. When i write in javascript I always get a description, but not c++ (see pic)

as you can see when im writing in javascript i get a decent description of what the function does when i start to write it out, can i get that for c++ too somehow? if not, is there a better way than googling each individual function to figure out what they do? thanks!

1 Answers

Your java library is commented. The standard library has no comments. You will have to use the reference if you want information about the likes of std::vector

The comments are not part of visual studio, they are in the source code you are referencing. You can see this for yourself Put this little program in editor.

//thus there is a comment
struct mystruct {};

int main()
{
    mys //<< start typing this here
}

mys should show in the selections. When you get to seeing mystruct in the selector, you will also see 'thus there is a comment` in the tool tip.

Related