{"id":234240,"date":"2021-09-15T09:00:54","date_gmt":"2021-09-15T16:00:54","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/visualstudio\/?p=234240"},"modified":"2021-09-15T09:04:34","modified_gmt":"2021-09-15T16:04:34","slug":"discover-quick-action-intellicode","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/visualstudio\/discover-quick-action-intellicode\/","title":{"rendered":"Discover quick actions for common tasks as you type, with IntelliCode"},"content":{"rendered":"<p><center><div style=\"width: 640px;\" class=\"wp-video\"><video class=\"wp-video-shortcode\" id=\"video-234240-1\" width=\"640\" height=\"360\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2021\/09\/IntelliCodeCommonActions.mp4?_=1\" \/><a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2021\/09\/IntelliCodeCommonActions.mp4\">https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2021\/09\/IntelliCodeCommonActions.mp4<\/a><\/video><\/div><\/p>\n<p><\/center>Have you ever found yourself wishing there was a built-in tool to accomplish a common task? You could not find the tool and started the work manually. Only after you have started the work, you discover there was a quick action to do the task. IntelliCode can now spot when you&#8217;re performing a common task and recommend the right quick action, completing it right as you&#8217;re typing. See how this works in the video above.<\/p>\n<p>In its current form, IntelliCode can detect and suggest a quick action for two initial scenarios: Generate Constructor and Add Parameter to Constructor. Scenarios supported will be expanded in future versions.<\/p>\n<h2>Try it now<\/h2>\n<p><span class=\"TextRun SCXW263249089 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW263249089 BCX0\">In <a href=\"https:\/\/visualstudio.microsoft.com\/vs\/preview\/?utm_source=devblogs-intellicode&amp;utm_medium=banner&amp;utm_campaign=vs2022p4\" target=\"_blank\" rel=\"noopener\">Visual Studio 2022 Preview 4<\/a>,<\/span><span class=\"NormalTextRun SCXW263249089 BCX0\">\u00a0the<\/span><span class=\"NormalTextRun SCXW263249089 BCX0\">se<\/span><span class=\"NormalTextRun SCXW263249089 BCX0\">\u00a0new<\/span><span class=\"NormalTextRun SCXW263249089 BCX0\">\u00a0<\/span><span class=\"NormalTextRun SpellingErrorV2 SCXW263249089 BCX0\">IntelliCode<\/span><span class=\"NormalTextRun SCXW263249089 BCX0\">\u00a0suggestions capabilities are enabled by default<\/span><span class=\"NormalTextRun SCXW263249089 BCX0\">.<\/span><span class=\"NormalTextRun SCXW263249089 BCX0\">\u00a0<\/span><span class=\"NormalTextRun SCXW263249089 BCX0\">Scenarios supported\u00a0<\/span><span class=\"NormalTextRun SCXW263249089 BCX0\">will be expanded in\u00a0<\/span><span class=\"NormalTextRun SCXW263249089 BCX0\">future versions<\/span><span class=\"NormalTextRun SCXW263249089 BCX0\">\u00a0&#8211;<\/span><span class=\"NormalTextRun SCXW263249089 BCX0\">\u00a0if there are\u00a0<\/span><\/span><a class=\"Hyperlink SCXW263249089 BCX0\" href=\"https:\/\/docs.microsoft.com\/en-us\/visualstudio\/ide\/quick-actions?view=vs-2019\" target=\"_blank\" rel=\"noreferrer noopener\"><span class=\"TextRun Underlined SCXW263249089 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"none\"><span class=\"NormalTextRun SCXW263249089 BCX0\" data-ccp-charstyle=\"Hyperlink\">quick actions<\/span><\/span><\/a><span class=\"TextRun SCXW263249089 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW263249089 BCX0\"> you\u2019d like to see supported, let us know in the comments or on social media!\u00a0<\/span><\/span><\/p>\n<h2>Quick actions and IntelliCode<\/h2>\n<p>Visual Studio provides hints to help you maintain and modify your code in the form of code fixes and refactorings. These appear as lightbulbs and screwdrivers next to your code or in the margin. The hints can resolve warnings and errors as well as provide suggestions.<span data-contrast=\"auto\"> While you are typing, IntelliCode examines your code changes as you type. Using <\/span><a href=\"https:\/\/www.microsoft.com\/en-us\/research\/group\/prose\/\"><span data-contrast=\"none\">PROSE<\/span><\/a><span data-contrast=\"auto\"> technology, IntelliCode matches these changes against common ways in which developers manually perform automatable code changes.<\/span>\u00a0 Upon an in-progress code fix or refactoring IntelliCode presents a suggestion to finish the code change for you from the completions list.<\/p>\n<h2 aria-level=\"3\">Let us know what you think!<\/h2>\n<p><span data-contrast=\"auto\">IntelliCode\u00a0has benefitted greatly from all the rich feedback we\u2019ve received\u00a0from you \u2013 thank you! We hope you\u2019ll help us continue to improve by giving the\u00a0newly enhanced\u00a0suggestions\u00a0a try and letting us know what you think.\u00a0Please report any issues you see via <a href=\"https:\/\/developercommunity.visualstudio.com\" target=\"_blank\" rel=\"noopener\">Developer Community<\/a> and file feature\u00a0requests if you have them.<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335551550&quot;:6,&quot;335551620&quot;:6,&quot;335559739&quot;:160,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Have you ever found yourself wishing there was a built-in tool to accomplish a common task? You could not find the tool and started the work manually. Only after you have started the work, you discover there was a quick action to do the task. IntelliCode can now spot when you&#8217;re performing a common task [&hellip;]<\/p>\n","protected":false},"author":11554,"featured_media":234508,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[155],"tags":[5,6782,1054,526,6781,5608,12],"class_list":["post-234240","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-visual-studio","tag-csharp","tag-intellicode-suggestions","tag-ml","tag-productivity","tag-prose","tag-roslyn","tag-visual-studio"],"acf":[],"blog_post_summary":"<p>Have you ever found yourself wishing there was a built-in tool to accomplish a common task? You could not find the tool and started the work manually. Only after you have started the work, you discover there was a quick action to do the task. IntelliCode can now spot when you&#8217;re performing a common task [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/234240","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/users\/11554"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/comments?post=234240"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/234240\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/media\/234508"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/media?parent=234240"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/categories?post=234240"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/tags?post=234240"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}