Reputation: 41
I've installed GitHub CoPilot and GitHub Copilot Chat in Visual Studio 2022 (17.7.4). I see the GitHub Copilot icon at the bottom let of my code windows, but no Copilot specific menu options when I right click on any line in the C# file, and without that I don't know how to get started. My goal is to generate documentation for C# classes/methods by asking Copilot Chat questions like "what does this method do" like I see in the demo videos:
I see the GitHub Copilot icon at the bottom left of my code windows (red square highlight), but no Copilot specific menu options when I right click on any line in the C# file, and without that I don't know how to get started.
Upvotes: 4
Views: 6061
Reputation: 5510
I just opened Option > Edit > Keyboard and entered copilot
in the filer box. Lo and lo and behold, there were 10 commands. The naming pattern of the command is usual for those grouped under a sub-menu, as if they were supposed to be on a submenu of the menubar-level Edit menu, only they in fact aren't. Two of these are bound to accelerator keys in the default VS2022 keyboard scheme, both in the context of Text Editor:
Alt+Ctrl+Enter, bound to Edit.Copilot.Open
, opens the Copilot window, which you may dock as you please. I don't see a chat window there, only a list of contextual suggestions.
Alt+Ctrl+/ is bound to Edit.Copilot.ToggleInlineSuggestion
, which is doing I have no idea what yet.
You may type some of there commands directly into the Command windows (View > Other > Command window, default Alt+Ctrl+A), but not all of them are available outside of the Text Editor context, and binding them to keys is perhaps the only way to try them. In addition to assigning a keystroke, placing toggle-style commands on a toolbar is convenient, as it provides an instant feedback of the feature toggle state.
Here's a screenshot with a transcription of all 10 available commands:
Edit.Copilot.LearnMore
Edit.Copilot.Open
Edit.Copilot.Settings
Edit.Copilot.SignIn
Edit.Copilot.SignInWithDeviceFlow
Edit.Copilot.SignOut
Edit.Copilot.ToggleGlobally
Edit.Copilot.ToggleLanguage
Edit.Copilot.ToggleSolution
Edit.Copilot.TriggerInlineSuggestion
Upvotes: 1
Reputation: 19
After installing Copilot Chat extension followed by View > GitHub Copilot Chat the 'Ask Copilot' menu command showed in the right click C# code editor menu.
Upvotes: 0