How to comment on C ++ code so that comments are visible in IntelliSense

In C #, if I want to comment on a function, I just press / three times and the corresponding tags appear above the function. Everything that I write in this tag is then displayed in IntelliSense, so I can easily see what this function does.

However, in C ++ there are no such tags, so how can I comment on the code so that IntelliSense recognizes my comment?

I tried to perform two functions of an inverse oblique function

    //
    //here goes the comment
    //
    void* Foo(){}

but it did not help.

+3
source share
3 answers

You can still use /// in Visual C ++ - the IDE does not give you an XML template.

+1
source

intellisense XML, .

0

, , , #. , .

++, , MS , #. intelisense ++.

XML, # UML. , ++ . , - .

Sorry for this kind of answer, but basically, visual studio does not support (at least not initially), doing something clever with comments for C ++, and then adds and removes them for several lines at once.

0
source

Source: https://habr.com/ru/post/1792107/


All Articles