{"id":34743,"date":"2024-10-10T17:31:35","date_gmt":"2024-10-10T17:31:35","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/cppblog\/?p=34743"},"modified":"2024-10-10T17:31:35","modified_gmt":"2024-10-10T17:31:35","slug":"new-contextual-tools-for-github-copilot-in-visual-studio","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/cppblog\/new-contextual-tools-for-github-copilot-in-visual-studio\/","title":{"rendered":"New Contextual Tools for GitHub Copilot in Visual Studio"},"content":{"rendered":"<p><span class=\"NormalTextRun SCXW199420723 BCX8\">Visual Studio 2022 17.11<\/span> <span class=\"NormalTextRun SCXW199420723 BCX8\">now allows you to pass your entire workspace or specific classes and functions as context for GitHub Copilot Chat<\/span><span class=\"NormalTextRun CommentStart SCXW199420723 BCX8\">.<\/span> <span class=\"NormalTextRun CommentStart SCXW199420723 BCX8\">By referencing your entire codebase, down to specific classes and functions, Copilot Chat can deliver <\/span><span class=\"NormalTextRun SCXW199420723 BCX8\">refined and <\/span><span class=\"NormalTextRun SCXW199420723 BCX8\">accurate<\/span><span class=\"NormalTextRun SCXW199420723 BCX8\"> results tailored to your code<\/span><span class=\"NormalTextRun SCXW199420723 BCX8\">.<\/span><\/p>\n<p><div  class=\"d-flex justify-content-center\"><a class=\"cta_button_link btn-primary mb-24\" href=\"https:\/\/visualstudio.microsoft.com\/\" target=\"_blank\">Download the Latest Version of Visual Studio<\/a><\/div><\/p>\n<h3><span class=\"TextRun SCXW249425938 BCX8\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"none\"><span class=\"NormalTextRun SCXW249425938 BCX8\" data-ccp-parastyle=\"heading 2\">@workspace <\/span><span class=\"NormalTextRun SCXW249425938 BCX8\" data-ccp-parastyle=\"heading 2\">for<\/span> <span class=\"NormalTextRun SCXW249425938 BCX8\" data-ccp-parastyle=\"heading 2\">project<\/span><span class=\"NormalTextRun SCXW249425938 BCX8\" data-ccp-parastyle=\"heading 2\"> references<\/span><\/span><span class=\"EOP SCXW249425938 BCX8\" data-ccp-props=\"{&quot;134245418&quot;:true,&quot;134245529&quot;:true,&quot;335559738&quot;:160,&quot;335559739&quot;:80}\">\u00a0<\/span><\/h3>\n<p><span class=\"TextRun SCXW152114677 BCX8\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW152114677 BCX8\">You can now use GitHub Copilot Chat to refer to your entire <\/span><span class=\"NormalTextRun SCXW152114677 BCX8\">C++ project using<\/span><span class=\"NormalTextRun CommentStart SCXW152114677 BCX8\"> the <\/span><\/span><a class=\"Hyperlink SCXW152114677 BCX8\" href=\"https:\/\/learn.microsoft.com\/en-us\/visualstudio\/ide\/copilot-chat-context?view=vs-2022#reference-the-entire-solution\" target=\"_blank\" rel=\"noreferrer noopener\"><span class=\"FieldRange SCXW152114677 BCX8\"><span class=\"TextRun Underlined SCXW152114677 BCX8\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"none\"><span class=\"NormalTextRun CommentStart SCXW152114677 BCX8\" data-ccp-charstyle=\"Hyperlink\">@workspace command<\/span><\/span><\/span><\/a><span class=\"TextRun SCXW152114677 BCX8\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun CommentStart SCXW152114677 BCX8\">. This feature allows you to<\/span> <span class=\"NormalTextRun SCXW152114677 BCX8\">ask questions about your project, and GitHub Copilot will provide you <\/span><span class=\"NormalTextRun SCXW152114677 BCX8\">with<\/span><span class=\"NormalTextRun SCXW152114677 BCX8\"> detailed <\/span><span class=\"NormalTextRun SCXW152114677 BCX8\">responses<\/span><span class=\"NormalTextRun SCXW152114677 BCX8\">.<\/span><\/span><\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2024\/10\/Screenshot-2024-10-08-232056.png\"><img decoding=\"async\" class=\"size-full wp-image-34745 aligncenter\" src=\"https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2024\/10\/Screenshot-2024-10-08-232056.png\" alt=\"Image Screenshot 2024 10 08 232056\" width=\"1299\" height=\"524\" srcset=\"https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2024\/10\/Screenshot-2024-10-08-232056.png 1299w, https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2024\/10\/Screenshot-2024-10-08-232056-300x121.png 300w, https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2024\/10\/Screenshot-2024-10-08-232056-1024x413.png 1024w, https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2024\/10\/Screenshot-2024-10-08-232056-768x310.png 768w\" sizes=\"(max-width: 1299px) 100vw, 1299px\" \/><\/a><\/p>\n<p><span class=\"TextRun SCXW30285007 BCX8\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW30285007 BCX8\">An example use case for the @workspace command in GitHub Copilot<\/span><span class=\"NormalTextRun SCXW30285007 BCX8\"> is<\/span> <span class=\"NormalTextRun SCXW30285007 BCX8\">identifying<\/span><span class=\"NormalTextRun SCXW30285007 BCX8\"> where<\/span><span class=\"NormalTextRun CommentStart SCXW30285007 BCX8\"> the ship&#8217;s turning <\/span><span class=\"NormalTextRun SCXW30285007 BCX8\">logic is handled <\/span><span class=\"NormalTextRun SCXW30285007 BCX8\">in <\/span><span class=\"NormalTextRun CommentStart SCXW30285007 BCX8\">the OSS (Open-Source Software) <\/span><\/span><a class=\"Hyperlink SCXW30285007 BCX8\" href=\"https:\/\/github.com\/pioneerspacesim\/pioneer\" target=\"_blank\" rel=\"noreferrer noopener\"><span class=\"TextRun Underlined SCXW30285007 BCX8\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"none\"><span class=\"NormalTextRun SCXW30285007 BCX8\" data-ccp-charstyle=\"Hyperlink\">Pioneer<\/span><\/span><\/a><span class=\"TextRun SCXW30285007 BCX8\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"> <span class=\"NormalTextRun SCXW30285007 BCX8\">project<\/span><span class=\"NormalTextRun SCXW30285007 BCX8\">. <\/span><span class=\"NormalTextRun SCXW30285007 BCX8\">Without using @workspace, GitHub Copilot would provide general steps on how to <\/span><span class=\"NormalTextRun SCXW30285007 BCX8\">identify<\/span><span class=\"NormalTextRun SCXW30285007 BCX8\"> the ship&#8217;s turning logic, such as searching for relevant functions and reviewing code sections related to movement.<\/span><\/span><span class=\"EOP SCXW30285007 BCX8\" data-ccp-props=\"{}\">\u00a0<\/span><\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2024\/10\/Screenshot-2024-10-09-131303.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-34747\" src=\"https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2024\/10\/Screenshot-2024-10-09-131303.png\" alt=\"Image Screenshot 2024 10 09 131303\" width=\"1555\" height=\"1575\" srcset=\"https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2024\/10\/Screenshot-2024-10-09-131303.png 1555w, https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2024\/10\/Screenshot-2024-10-09-131303-296x300.png 296w, https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2024\/10\/Screenshot-2024-10-09-131303-1011x1024.png 1011w, https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2024\/10\/Screenshot-2024-10-09-131303-768x778.png 768w, https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2024\/10\/Screenshot-2024-10-09-131303-1516x1536.png 1516w, https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2024\/10\/Screenshot-2024-10-09-131303-24x24.png 24w, https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2024\/10\/Screenshot-2024-10-09-131303-48x48.png 48w, https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2024\/10\/Screenshot-2024-10-09-131303-96x96.png 96w\" sizes=\"(max-width: 1555px) 100vw, 1555px\" \/><\/a><\/p>\n<p><span class=\"TextRun SCXW248964720 BCX8\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW248964720 BCX8\">When <\/span><span class=\"NormalTextRun SCXW248964720 BCX8\">you ask, <\/span><span class=\"NormalTextRun CommentStart SCXW248964720 BCX8\">\u201c<\/span><span class=\"NormalTextRun CommentStart SCXW248964720 BCX8\">@<\/span><span class=\"NormalTextRun SCXW248964720 BCX8\">w<\/span><span class=\"NormalTextRun SCXW248964720 BCX8\">orkspace, identify where the ship\u2019s turning logic is handled in this project,\u201d<\/span> <span class=\"NormalTextRun SCXW248964720 BCX8\">it will give specific and actionable insights, directly pointing to the relevant sections of code where the ship\u2019s turning logic is implemented<\/span><span class=\"NormalTextRun SCXW248964720 BCX8\">,<\/span> <span class=\"NormalTextRun CommentStart SCXW248964720 BCX8\">as <\/span><span class=\"NormalTextRun SCXW248964720 BCX8\">showcased<\/span><span class=\"NormalTextRun SCXW248964720 BCX8\"> in the GIF below<\/span><span class=\"NormalTextRun SCXW248964720 BCX8\">.<\/span><span class=\"NormalTextRun SCXW248964720 BCX8\">\u00a0<\/span><\/span><\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2024\/10\/@workspace_example.gif\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-34744\" src=\"https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2024\/10\/@workspace_example.gif\" alt=\"GIF showing @workspace example\" width=\"2153\" height=\"1438\" \/><\/a><\/p>\n<p><span class=\"TextRun SCXW192221666 BCX8\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW192221666 BCX8\">GitHub Copilot Chat lists the sources it uses to generate responses, providing transparency and helping users verify the information. Additionally, the <\/span><\/span><a class=\"Hyperlink SCXW192221666 BCX8\" href=\"https:\/\/devblogs.microsoft.com\/cppblog\/configure-github-copilot-access-via-content-exclusion\/\" target=\"_blank\" rel=\"noreferrer noopener\"><span class=\"TextRun Underlined SCXW192221666 BCX8\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"none\"><span class=\"NormalTextRun SCXW192221666 BCX8\" data-ccp-charstyle=\"Hyperlink\">Content Exclusion<\/span><\/span><\/a><span class=\"TextRun SCXW192221666 BCX8\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW192221666 BCX8\"> feature allows you to customize which files Copilot can access, ensuring sensitive information is <\/span><span class=\"NormalTextRun CommentStart SCXW192221666 BCX8\">never sent to Copilot.<\/span><span class=\"NormalTextRun SCXW192221666 BCX8\"> This helps enforce company-wide security policies while still <\/span><span class=\"NormalTextRun SCXW192221666 BCX8\">benefiting<\/span><span class=\"NormalTextRun SCXW192221666 BCX8\"> from Copilot\u2019s capabilities across your development workflow.<\/span><\/span><span class=\"EOP SCXW192221666 BCX8\" data-ccp-props=\"{}\">\u00a0<\/span><\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2024\/10\/Screenshot-2024-10-09-130538.png\"><img decoding=\"async\" class=\"size-full wp-image-34748 aligncenter\" src=\"https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2024\/10\/Screenshot-2024-10-09-130538.png\" alt=\"Image Screenshot 2024 10 09 130538\" width=\"636\" height=\"313\" srcset=\"https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2024\/10\/Screenshot-2024-10-09-130538.png 636w, https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2024\/10\/Screenshot-2024-10-09-130538-300x148.png 300w\" sizes=\"(max-width: 636px) 100vw, 636px\" \/><\/a><\/p>\n<p><span class=\"TextRun SCXW201205822 BCX8\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW201205822 BCX8\">@workspace is also supported in VS Code. For more information, you can visit the <\/span><\/span><a class=\"Hyperlink SCXW201205822 BCX8\" href=\"https:\/\/code.visualstudio.com\/docs\/copilot\/workspace-context\" target=\"_blank\" rel=\"noreferrer noopener\"><span class=\"TextRun Underlined SCXW201205822 BCX8\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"none\"><span class=\"NormalTextRun SCXW201205822 BCX8\" data-ccp-charstyle=\"Hyperlink\">Making Copilot Chat an expert in your workspace<\/span><\/span><\/a><span class=\"TextRun SCXW201205822 BCX8\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW201205822 BCX8\"> page<\/span><span class=\"NormalTextRun SCXW201205822 BCX8\">.<\/span><\/span><span class=\"EOP SCXW201205822 BCX8\" data-ccp-props=\"{}\">\u00a0<\/span><\/p>\n<h3><span class=\"TextRun SCXW52342069 BCX8\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"none\"><span class=\"NormalTextRun CommentStart SCXW52342069 BCX8\" data-ccp-parastyle=\"heading 2\">Reference<\/span><span class=\"NormalTextRun SCXW52342069 BCX8\" data-ccp-parastyle=\"heading 2\"> Classes and Functions<\/span><span class=\"NormalTextRun SCXW52342069 BCX8\" data-ccp-parastyle=\"heading 2\">\u00a0with Copilot Chat<\/span><\/span><span class=\"EOP SCXW52342069 BCX8\" data-ccp-props=\"{&quot;134245418&quot;:true,&quot;134245529&quot;:true,&quot;335559738&quot;:160,&quot;335559739&quot;:80}\">\u00a0<\/span><\/h3>\n<p><span class=\"TextRun SCXW218146091 BCX8\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW218146091 BCX8\">While @workspace is used to dynamically gather workspace context to navigate and understand an entire codebase, <\/span><span class=\"NormalTextRun CommentStart SCXW218146091 BCX8\">referenc<\/span><span class=\"NormalTextRun SCXW218146091 BCX8\">es <\/span><span class=\"NormalTextRun SCXW218146091 BCX8\">allow<\/span><span class=\"NormalTextRun SCXW218146091 BCX8\"> you to be super specific about <\/span><span class=\"NormalTextRun SCXW218146091 BCX8\">particular classes<\/span><span class=\"NormalTextRun SCXW218146091 BCX8\"> and functions when you have targeted questions.<\/span><\/span><span class=\"EOP SCXW218146091 BCX8\" data-ccp-props=\"{}\">\u00a0<\/span><\/p>\n<p><span class=\"TextRun SCXW121319002 BCX8\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun CommentStart SCXW121319002 BCX8\">You can now use GitHub Copilot Cha<\/span><span class=\"NormalTextRun SCXW121319002 BCX8\">t <\/span><span class=\"NormalTextRun SCXW121319002 BCX8\">to <\/span><\/span><a class=\"Hyperlink SCXW121319002 BCX8\" href=\"https:\/\/learn.microsoft.com\/en-us\/visualstudio\/ide\/copilot-chat-context?view=vs-2022#reference-a-method-class-or-function\" target=\"_blank\" rel=\"noreferrer noopener\"><span class=\"TextRun Underlined SCXW121319002 BCX8\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"none\"><span class=\"NormalTextRun SCXW121319002 BCX8\" data-ccp-charstyle=\"Hyperlink\">reference your classes and functions<\/span><\/span><\/a><span class=\"TextRun SCXW121319002 BCX8\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW121319002 BCX8\">. This feature allows Copilot to access relevant code segments directly<\/span><span class=\"NormalTextRun SCXW121319002 BCX8\">, enabling it to provide answers that directly apply to the code in your project<\/span><span class=\"NormalTextRun SCXW121319002 BCX8\">.\u00a0<\/span> <\/span><\/p>\n<p style=\"text-align: center;\"><span class=\"TextRun SCXW121319002 BCX8\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun CommentStart SCXW121319002 BCX8\"><a href=\"https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2024\/10\/Screenshot-2024-10-09-030739.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-34749\" src=\"https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2024\/10\/Screenshot-2024-10-09-030739.png\" alt=\"Image Screenshot 2024 10 09 030739\" width=\"1672\" height=\"908\" srcset=\"https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2024\/10\/Screenshot-2024-10-09-030739.png 1672w, https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2024\/10\/Screenshot-2024-10-09-030739-300x163.png 300w, https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2024\/10\/Screenshot-2024-10-09-030739-1024x556.png 1024w, https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2024\/10\/Screenshot-2024-10-09-030739-768x417.png 768w, https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2024\/10\/Screenshot-2024-10-09-030739-1536x834.png 1536w\" sizes=\"(max-width: 1672px) 100vw, 1672px\" \/><\/a>\u00a0<\/span><\/span><span class=\"EOP SCXW121319002 BCX8\" data-ccp-props=\"{}\">\u00a0<\/span><\/p>\n<p><span class=\"TextRun SCXW259558289 BCX8\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW259558289 BCX8\">For example,<\/span><span class=\"NormalTextRun SCXW259558289 BCX8\"> in the OSS Pioneer project, <\/span><span class=\"NormalTextRun SCXW259558289 BCX8\">you can ask GitHub Copilot, <\/span><span class=\"NormalTextRun SCXW259558289 BCX8\">\u201cWhat are common issues when working with the<\/span><span class=\"NormalTextRun SCXW259558289 BCX8\"> #StarSystem<\/span><span class=\"NormalTextRun SCXW259558289 BCX8\">?<\/span><span class=\"NormalTextRun SCXW259558289 BCX8\">\u201d<\/span><span class=\"NormalTextRun SCXW259558289 BCX8\"> Copilot will the<\/span><span class=\"NormalTextRun SCXW259558289 BCX8\">n <\/span><span class=\"NormalTextRun SCXW259558289 BCX8\">provi<\/span><span class=\"NormalTextRun SCXW259558289 BCX8\">de<\/span> <span class=\"NormalTextRun SCXW259558289 BCX8\">pertinent<\/span><span class=\"NormalTextRun SCXW259558289 BCX8\"> answers based on<\/span><span class=\"NormalTextRun CommentStart SCXW259558289 BCX8\"> that specific class<\/span><span class=\"NormalTextRun SCXW259558289 BCX8\">. <\/span><span class=\"NormalTextRun SCXW259558289 BCX8\">Make <\/span><span class=\"NormalTextRun CommentStart SCXW259558289 BCX8\">sure<\/span><span class=\"NormalTextRun SCXW259558289 BCX8\"> to add a <\/span><span class=\"NormalTextRun SCXW259558289 BCX8\">\u2018<\/span><span class=\"NormalTextRun SCXW259558289 BCX8\">#<\/span><span class=\"NormalTextRun SCXW259558289 BCX8\">\u2019<\/span><span class=\"NormalTextRun SCXW259558289 BCX8\"> symbol at the beginning of the name, as <\/span><span class=\"NormalTextRun SCXW259558289 BCX8\">demonstrated<\/span> <span class=\"NormalTextRun SCXW259558289 BCX8\">in this example.<\/span><\/span><span class=\"EOP SCXW259558289 BCX8\" data-ccp-props=\"{}\">\u00a0<\/span><\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2024\/10\/Screenshot-2024-10-09-035635.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-34750\" src=\"https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2024\/10\/Screenshot-2024-10-09-035635.png\" alt=\"Image Screenshot 2024 10 09 035635\" width=\"1964\" height=\"1970\" srcset=\"https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2024\/10\/Screenshot-2024-10-09-035635.png 1964w, https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2024\/10\/Screenshot-2024-10-09-035635-300x300.png 300w, https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2024\/10\/Screenshot-2024-10-09-035635-1021x1024.png 1021w, https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2024\/10\/Screenshot-2024-10-09-035635-150x150.png 150w, https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2024\/10\/Screenshot-2024-10-09-035635-768x770.png 768w, https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2024\/10\/Screenshot-2024-10-09-035635-1531x1536.png 1531w, https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2024\/10\/Screenshot-2024-10-09-035635-24x24.png 24w, https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2024\/10\/Screenshot-2024-10-09-035635-48x48.png 48w, https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2024\/10\/Screenshot-2024-10-09-035635-96x96.png 96w\" sizes=\"(max-width: 1964px) 100vw, 1964px\" \/><\/a><\/p>\n<h3><span class=\"TextRun SCXW150527876 BCX8\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"none\"><span class=\"NormalTextRun SCXW150527876 BCX8\" data-ccp-parastyle=\"heading 2\">Let us know what you think<\/span><\/span><span class=\"EOP SCXW150527876 BCX8\" data-ccp-props=\"{&quot;134245418&quot;:true,&quot;134245529&quot;:true,&quot;335559738&quot;:160,&quot;335559739&quot;:80}\">\u00a0<\/span><\/h3>\n<p><span data-contrast=\"auto\">To access these features, you need the <\/span><a href=\"https:\/\/visualstudio.microsoft.com\/\"><span data-contrast=\"none\">latest version of Visual Studio<\/span><\/a><span data-contrast=\"auto\"> and an <\/span><a href=\"https:\/\/github.com\/features\/copilot?utm_source=vscom&amp;utm_medium=hero&amp;utm_campaign=cta-get%22%20\\l%20%22pricing\"><span data-contrast=\"none\">active GitHub Copilot subscription<\/span><\/a><span data-contrast=\"auto\">. <\/span><span data-ccp-props=\"{}\">\u00a0<\/span><\/p>\n<p><span data-contrast=\"auto\">We hope you enjoy these new updates to GitHub Copilot. Your valuable input continuously helps us improve our product. Share your thoughts in the comment section below, through the, <\/span><a href=\"https:\/\/developercommunity.visualstudio.com\/cpp\"><span data-contrast=\"none\">Developer Community<\/span><\/a><span data-contrast=\"none\">, via email at <\/span><a href=\"mailto:%E2%80%AFvisualcpp@microsoft.com%E2%80%AF\"><span data-contrast=\"none\">\u202fvisualcpp@microsoft.com\u202f<\/span><\/a><span data-contrast=\"none\"> or via X at <\/span><a href=\"https:\/\/x.com\/visualc\"><span data-contrast=\"none\">@VisualC<\/span><\/a><span data-contrast=\"none\">.<\/span><span data-ccp-props=\"{}\">\u00a0<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Visual Studio 2022 17.11 now allows you to pass your entire workspace or specific classes and functions as context for GitHub Copilot Chat. By referencing your entire codebase, down to specific classes and functions, Copilot Chat can deliver refined and accurate results tailored to your code. @workspace for project references\u00a0 You can now use GitHub [&hellip;]<\/p>\n","protected":false},"author":96741,"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-34743","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cplusplus"],"acf":[],"blog_post_summary":"<p>Visual Studio 2022 17.11 now allows you to pass your entire workspace or specific classes and functions as context for GitHub Copilot Chat. By referencing your entire codebase, down to specific classes and functions, Copilot Chat can deliver refined and accurate results tailored to your code. @workspace for project references\u00a0 You can now use GitHub [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/posts\/34743","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\/96741"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/comments?post=34743"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/posts\/34743\/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=34743"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/categories?post=34743"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/tags?post=34743"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}