{"id":24215,"date":"2016-04-06T20:06:17","date_gmt":"2016-04-06T20:06:17","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/cppblog\/?p=24215"},"modified":"2019-04-30T20:12:42","modified_gmt":"2019-04-30T20:12:42","slug":"be-sure-to-try-out-the-cpp-quick-fixes-extension","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/cppblog\/be-sure-to-try-out-the-cpp-quick-fixes-extension\/","title":{"rendered":"Be sure to try out the C++ Quick Fixes extension!"},"content":{"rendered":"<p>Hello C++ World!<\/p>\n<p>Our <a href=\"https:\/\/visualstudiogallery.msdn.microsoft.com\/be91feef-8dc3-4f7a-ac9f-f34e7ca5918f\">C++ Quick Fixes extension<\/a> has gotten some pretty good initial feedback since we released it a few months ago. I wanted take some time to make sure that you are<\/p>\n<p style=\"padding-left: 30px;\">1. aware of its benefits\n2. giving us feedback on current features, and\n3. giving us feedback on what other \u201cQuick Fixes\u201d you\u2019d like to see!<\/p>\n<p>The theme of the Quick Fixes extension is to provide additional features that help you address <b>errors<\/b><b>\/squiggles in your code.<\/b><\/p>\n<h3>Using the Extension<\/h3>\n<p>To access the feature, hover over a red squiggle and look for a lightbulb, or use the default keyboard shortcut <b>Ctrl<\/b><b>+<\/b><b>Dot <\/b><b>(Ctrl<\/b><b>+<\/b><b>.)<\/b>. Note that for the keyboard shortcut, your caret doesn&#8217;t need to be positioned on the specific error\/token; you can simply be on the same line as the error to invoke suggestions for anything (and everything) on that line.<\/p>\n<p>You can find the full list of features on the <a href=\"https:\/\/visualstudiogallery.msdn.microsoft.com\/be91feef-8dc3-4f7a-ac9f-f34e7ca5918f\">extension page<\/a>,\u00a0and <a href=\"https:\/\/msdnshared.blob.core.windows.net\/media\/2016\/04\/QuickFixesExamples.zip\">download a sample file to try all out current Quick Fixes<\/a>.<\/p>\n<p>Here&#8217;s a highlight of some key features:<\/p>\n<ul>\n<li><b>Add missing #include <\/b>\u2013 This is arguably the most useful feature currently in the extension. It suggests relevant #include&#8217;s for unknown symbols in your code, and can do so as long as that symbol matches something found in your project&#8217;s #include graph.\n<img decoding=\"async\" class=\"alignnone size-full wp-image-24211\" src=\"https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2019\/04\/AddMissingInclude.png\" alt=\"\" width=\"208\" height=\"122\" \/><b><\/b><\/li>\n<li><b>Add using namespace\/Fully qualify symbol<\/b>\u202f\u2013 This also applies to unknown symbols in your code, and can be used in conjunction with the previous feature when adding in library headers.\n<img decoding=\"async\" class=\"alignnone size-full wp-image-24212\" src=\"https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2019\/04\/AddUsingNamespace.png\" alt=\"\" width=\"230\" height=\"190\" \/><\/li>\n<li>\u00a0<b>MSDN Help<\/b>\u202f\u2013 Ever get one of those error messages you didn\u2019t quite understand and\/or wanted more information? We\u2019re saving you the time of manually switching to your browser, going to MSDN, and typing\/copy-pasting the error text. =)\n<img decoding=\"async\" class=\"alignnone size-full wp-image-24213\" src=\"https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2019\/04\/MSDNHelp1.png\" alt=\"\" width=\"393\" height=\"69\" srcset=\"https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2019\/04\/MSDNHelp1.png 393w, https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2019\/04\/MSDNHelp1-300x53.png 300w\" sizes=\"(max-width: 393px) 100vw, 393px\" \/>\n<a href=\"https:\/\/msdnshared.blob.core.windows.net\/media\/2016\/04\/MSDNHelp2.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-8704\" src=\"https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2019\/04\/MSDNHelp2.png\" alt=\"MSDNHelp2\" width=\"259\" height=\"141\" \/><\/a><\/li>\n<\/ul>\n<h3>Give Us Feedback!<\/h3>\n<p>Please kick the tires by <a href=\"https:\/\/visualstudiogallery.msdn.microsoft.com\/be91feef-8dc3-4f7a-ac9f-f34e7ca5918f\">installing the extension<\/a> and \u2013 we cannot emphasize this enough \u2013 make sure to leave us your feedback!<\/p>\n<p>For <strong>feedback on current features<\/strong>, you can:<\/p>\n<ul>\n<li>leave a comment below<\/li>\n<li>log a bug through <a href=\"http:\/\/connect.microsoft.com\/VisualStudio\">Connect<\/a><\/li>\n<li>start a thread on the <i>Q AND A<\/i> tab on the <a href=\"https:\/\/visualstudiogallery.msdn.microsoft.com\/be91feef-8dc3-4f7a-ac9f-f34e7ca5918f\">extension page<\/a><\/li>\n<li>rate the extension and write a review on the <a href=\"https:\/\/visualstudiogallery.msdn.microsoft.com\/be91feef-8dc3-4f7a-ac9f-f34e7ca5918f\">extension page\u00a0<\/a><\/li>\n<li>report a problem from inside Visual Studio\n<img decoding=\"async\" class=\"alignnone size-full wp-image-24214\" src=\"https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2019\/04\/Report-A-Problem.png\" alt=\"\" width=\"350\" height=\"155\" srcset=\"https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2019\/04\/Report-A-Problem.png 350w, https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2019\/04\/Report-A-Problem-300x133.png 300w\" sizes=\"(max-width: 350px) 100vw, 350px\" \/><\/li>\n<\/ul>\n<p>For <strong>suggestions on future features<\/strong>, you can:<\/p>\n<ul>\n<li><b>(<\/b><b>highly <\/b><b>preferred)<\/b> create and\/or upvote features on <a href=\"https:\/\/visualstudio.uservoice.com\/forums\/121579-visual-studio-2015\/category\/30937-languages-c\">UserVoice<\/a> with the title &#8220;C++ Quick Fixes: &lt;insert your suggestion&gt;&#8221;<\/li>\n<li>leave a comment below<\/li>\n<li>provide a suggestion from inside Visual Studio (see the above graphic)<\/li>\n<\/ul>\n<p>Best regards,\nGabriel Ha<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hello C++ World! Our C++ Quick Fixes extension has gotten some pretty good initial feedback since we released it a few months ago. I wanted take some time to make sure that you are 1. aware of its benefits 2. giving us feedback on current features, and 3. giving us feedback on what other \u201cQuick [&hellip;]<\/p>\n","protected":false},"author":289,"featured_media":35994,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-24215","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cplusplus"],"acf":[],"blog_post_summary":"<p>Hello C++ World! Our C++ Quick Fixes extension has gotten some pretty good initial feedback since we released it a few months ago. I wanted take some time to make sure that you are 1. aware of its benefits 2. giving us feedback on current features, and 3. giving us feedback on what other \u201cQuick [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/posts\/24215","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\/289"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/comments?post=24215"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/posts\/24215\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/media\/35994"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/media?parent=24215"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/categories?post=24215"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/tags?post=24215"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}