{"id":23835,"date":"2019-01-31T10:04:37","date_gmt":"2019-01-31T10:04:37","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/cppblog\/?p=23835"},"modified":"2019-11-06T23:46:44","modified_gmt":"2019-11-06T23:46:44","slug":"vs-code-cpp-extension-january-2019-update","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/cppblog\/vs-code-cpp-extension-january-2019-update\/","title":{"rendered":"Visual Studio Code C\/C++ extension: January 2019 Update"},"content":{"rendered":"<p><span style=\"color: #808080;\"><em><strong>[Updated on 11\/4\/2019]<\/strong> &#8211; Removed mentions of &#8220;Improved Member Function Completion&#8221; which is no longer supported based on user feedback.<\/em><\/span><\/p>\n<p>The January 2019 update of the <a href=\"https:\/\/marketplace.visualstudio.com\/items?itemName=ms-vscode.cpptools\">Visual Studio Code C++ extension<\/a> is now available. This release includes many new features and bug fixes including documentation comments support, improved #include autocomplete performance, and many IntelliSense bug fixes. For a full list of this release\u2019s improvements, check out our <a href=\"https:\/\/github.com\/Microsoft\/vscode-cpptools\/releases\/tag\/0.21.0\">release notes on Github<\/a>.<\/p>\n<h2>Documentation Comments<\/h2>\n<p>We added support for documentation comments for hover, completion, and signature help. You can now see documentation comments in tooltips. Let\u2019s look at a simple box_sample.cpp program that defines a \u201cBox\u201d object with various dimensions.<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-23836 size-full\" src=\"https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2019\/02\/box_sample.cpp_.png\" alt=\"\" width=\"782\" height=\"654\" srcset=\"https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2019\/02\/box_sample.cpp_.png 782w, https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2019\/02\/box_sample.cpp_-300x251.png 300w, https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2019\/02\/box_sample.cpp_-768x642.png 768w\" sizes=\"(max-width: 782px) 100vw, 782px\" \/><\/p>\n<p>The comment associated with a class or member function is shown in a tooltip when you hover over a place where the class or member function is used. For example, we can see the \u201cBox object\u201d comment in our main function where we create a Box instance:<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-23841\" src=\"https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2019\/01\/doc_comment.png\" alt=\"Hovering over Box provides a tooltip with the comment for the Box member function\" width=\"822\" height=\"240\" srcset=\"https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2019\/01\/doc_comment.png 822w, https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2019\/01\/doc_comment-300x88.png 300w, https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2019\/01\/doc_comment-768x224.png 768w\" sizes=\"(max-width: 822px) 100vw, 822px\" \/><\/p>\n<h2>#include Autocomplete<\/h2>\n<p>This update improves #include autocomplete performance. It now shows individual folders instead of entire paths, thus fixing previous performance issues. When you autocomplete the #include recommendation. In the example below, we modified our original box_sample.cpp program where we place the Box object definition in a separate header file within the \u201cObjects\u201d folder. Now, when we go into our main box_sample.cpp file and see our #include auto-complete suggestion, we see the \u201cObjects\u201d folder auto-complete recommendation.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-23837\" src=\"https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2019\/02\/include-autocomplete.png\" alt=\"\" width=\"1613\" height=\"544\" srcset=\"https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2019\/02\/include-autocomplete.png 1613w, https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2019\/02\/include-autocomplete-300x101.png 300w, https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2019\/02\/include-autocomplete-768x259.png 768w, https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2019\/02\/include-autocomplete-1024x345.png 1024w\" sizes=\"(max-width: 1613px) 100vw, 1613px\" \/>\n<!--\n\n\n<h2>Improved Member Function Completion<\/h2>\n\n\nWith improved member function completion, the selected completion is committed after a parenthesis \u201c(\u201c is entered. This removes the need to accept an autocompletion (using tab, enter, or click) <i>and<\/i> type the parenthesis. You will now receive the suggested text along with parentheses and the cursor in the middle for a simpler editing experience. Here\u2019s a look at how this works with the \u201cvolume\u201d member function for our Box object:\n\n<img decoding=\"async\" class=\"alignnone size-full wp-image-23838\" src=\"https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2019\/02\/method_completion.gif\" alt=\"The volume member function in main is completed when you type just &quot;vo&quot; and a &quot;(&quot;\" width=\"1304\" height=\"624\" \/>\n\nThis also works for class and member function templates after you type a \u201c&lt;\u201d completion character.\n\nNote that if you accept the autocompletion using tab, enter, or click, we do not currently auto-add the parenthesis. --><\/p>\n<h2>IntelliSense Bug Fixes<\/h2>\n<p>As per customer feedback, we\u2019re continuing to work on bug fixes for IntelliSense. This release we\u2019ve made some IntelliSense fixes including error squiggle improvements, process crash fixes, and increased stability.<\/p>\n<p>You can see additional details of the issues we fixed in our <a href=\"https:\/\/github.com\/Microsoft\/vscode-cpptools\/releases\/tag\/0.21.0\">release notes<\/a> on GitHub.<\/p>\n<h2>Tell Us What You Think<\/h2>\n<p><a href=\"https:\/\/marketplace.visualstudio.com\/items?itemName=ms-vscode.cpptools\">Download the C\/C++ extension for Visual Studio Code<\/a>, give it a try, and let us know what you think. If you run into any issues, or have any suggestions, please report them on the Issues section of our GitHub repository. Join our <a href=\"https:\/\/devblogs.microsoft.com\/cppblog\/visual-studio-code-cpp-extension-october-2018-update-and-a-simplified-insiders-program\/\">Insiders program<\/a> to get early builds of our extension.<\/p>\n<p>Please also take our <a href=\"https:\/\/www.research.net\/r\/VBVV6C6\">quick survey<\/a> to help us shape this extension to meet your needs. We can be reached via the comments below or via email (<a>visualcpp@microsoft.com<\/a>). You can also find us on Twitter (<a href=\"https:\/\/twitter.com\/visualc\">@VisualC<\/a>).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[Updated on 11\/4\/2019] &#8211; Removed mentions of &#8220;Improved Member Function Completion&#8221; which is no longer supported based on user feedback. The January 2019 update of the Visual Studio Code C++ extension is now available. This release includes many new features and bug fixes including documentation comments support, improved #include autocomplete performance, and many IntelliSense bug [&hellip;]<\/p>\n","protected":false},"author":1305,"featured_media":23841,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[270,275],"tags":[],"class_list":["post-23835","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-announcement","category-visual-studio-code"],"acf":[],"blog_post_summary":"<p>[Updated on 11\/4\/2019] &#8211; Removed mentions of &#8220;Improved Member Function Completion&#8221; which is no longer supported based on user feedback. The January 2019 update of the Visual Studio Code C++ extension is now available. This release includes many new features and bug fixes including documentation comments support, improved #include autocomplete performance, and many IntelliSense bug [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/posts\/23835","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\/1305"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/comments?post=23835"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/posts\/23835\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/media\/23841"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/media?parent=23835"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/categories?post=23835"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/tags?post=23835"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}