{"id":35355,"date":"2025-04-03T15:55:21","date_gmt":"2025-04-03T15:55:21","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/cppblog\/?p=35355"},"modified":"2025-04-02T16:20:49","modified_gmt":"2025-04-02T16:20:49","slug":"automatically-generate-any-doc-comment-for-c-functions-in-visual-studio","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/cppblog\/automatically-generate-any-doc-comment-for-c-functions-in-visual-studio\/","title":{"rendered":"Automatically generate any doc comment for C++ functions in Visual Studio"},"content":{"rendered":"<p>Have a difficult time documenting your C++ code? Spending too much time thinking of what a function and its parameters accomplish when generating documentation?<\/p>\n<p>Copilot is now integrated into C++ doc comments to automatically provide documentation suggestions based on the function\u2019s contents in Visual Studio 2022 17.14 Preview 2.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2025\/04\/ai-doc-comments-2.gif\"><img decoding=\"async\" class=\"alignnone size-full wp-image-35356\" src=\"https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2025\/04\/ai-doc-comments-2.gif\" alt=\"Copilot helping to generate the doc comments for a bubble sort function.\" width=\"768\" height=\"295\" \/><\/a><\/p>\n<p>To learn more about this feature, please check out the <strong><a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/introducing-automatic-documentation-comment-generation-in-visual-studio\/\">original announcement on the Visual Studio blog<\/a>.<\/strong><\/p>\n<h3>What do you think?<\/h3>\n<p>Try out the latest Copilot features for your C++ workflows today. To access these updates to Copilot, you\u2019ll need an\u00a0<a href=\"https:\/\/github.com\/features\/copilot?utm_source=vscom&amp;utm_medium=hero&amp;utm_campaign=cta-get#pricing\">active GitHub Copilot subscription<\/a> and <a href=\"http:\/\/aka.ms\/vs\">the latest version of Visual Studio<\/a> (minimum Visual Studio 2022 17.14 Preview 2).<\/p>\n<p>In addition, our team is working hard on improving C++ integrations with Copilot, so please let us know any other enhancements you\u2019d like to see to your C++ workflows and content. Comment below, or you can find us via email at\u00a0<a href=\"mailto:visualcpp@microsoft.com\">visualcpp@microsoft.com<\/a>\u00a0or via X at\u00a0<a href=\"https:\/\/x.com\/visualc\">@VisualC<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Have a difficult time documenting your C++ code? Spending too much time thinking of what a function and its parameters accomplish when generating documentation? Copilot is now integrated into C++ doc comments to automatically provide documentation suggestions based on the function\u2019s contents in Visual Studio 2022 17.14 Preview 2. To learn more about this feature, [&hellip;]<\/p>\n","protected":false},"author":85413,"featured_media":35356,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1,3940],"tags":[],"class_list":["post-35355","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cplusplus","category-copilot"],"acf":[],"blog_post_summary":"<p>Have a difficult time documenting your C++ code? Spending too much time thinking of what a function and its parameters accomplish when generating documentation? Copilot is now integrated into C++ doc comments to automatically provide documentation suggestions based on the function\u2019s contents in Visual Studio 2022 17.14 Preview 2. To learn more about this feature, [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/posts\/35355","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/users\/85413"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/comments?post=35355"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/posts\/35355\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/media\/35356"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/media?parent=35355"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/categories?post=35355"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/tags?post=35355"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}