Sparkofska
Sparkofska

Reputation: 1320

How to automatically generate comments in Visual Studio 2017 and C++?

I'm wondering if there is a functionality in Visual Studio 2017 to automatically generate documentation comments for parameters, return value, etc. in C++.

In Eclipse, Java, I start typing /** above a method and the rest is generated.

As someone answered here this functionality exists for C#, but I can't find any hints for C++.

Upvotes: 1

Views: 1474

Answers (1)

user7860670
user7860670

Reputation: 37468

That's one of the things where C++ tooling really falls behind. For VS you will need to use some third party extension, such as CppTripleSlash or CppDoxyComplete. Both are kinda crappy though (no template support, no exception spec support, no attributes support, no SAL support, etc.).

Upvotes: 1

Related Questions