is there a way to custom the comments style? in c++

is there a way to custom the comments style? in Resharper C++

Now, I have to use the "Xml Comments for C++" plugins,but it's not so intelligent。

I hope Resharper C++ can do this like c#.

6 comments

Hello,

Yes, there is a way. R++ includes the "Document" context action, see the "Documentation generation" section in https://blog.jetbrains.com/rscpp/whats-new-in-resharper-c-2016-2/. This action uses the "doc" live template, which you can configure via the "Tools | Templates Explorer" dialog. Let us know if you need help with changing the template to your liking.

0

thank you very much, i find it .

now i modify the template as shown, and it works well.  

/// <summary>
/// $END$
/// </summary>
/// <typeparam name="$TNAME$">$TDESCRIPTION$</typeparam>
/// <param name="$PNAME$">$PDESCRIPTION$</param>
/// <param name="$MNAME$">$MDESCRIPTION$</param>
/// <returns>$RETURN$</returns>

 

In addition, is there a way to update the comments like this? when i add/remove/modify params.

0

Sorry, there's no way to update the comment yet, but R++ will warn you if some parameter is missing a comment or if a comment references an unknown parameter.

0

yes, i see it.

thank you very much.

 

0

R++ will support renaming of parameters in 2019.1.

0

Please sign in to leave a comment.