« Github Copilot » : différence entre les versions
De Banane Atomic
Aller à la navigationAller à la recherche
(Une version intermédiaire par le même utilisateur non affichée) | |||
Ligne 3 : | Ligne 3 : | ||
* [https://learn.microsoft.com/en-us/visualstudio/ide/visual-studio-github-copilot-extension?view=vs-2022 What is the GitHub Copilot extension for Visual Studio?] | * [https://learn.microsoft.com/en-us/visualstudio/ide/visual-studio-github-copilot-extension?view=vs-2022 What is the GitHub Copilot extension for Visual Studio?] | ||
= | = Shortcuts = | ||
{| class="wikitable wtp wtmono1" | {| class="wikitable wtp wtmono1" | ||
! Shortcut !! Description | ! Shortcut !! Description | ||
Ligne 34 : | Ligne 34 : | ||
| # || focus on a specific file | | # || focus on a specific file | ||
|} | |} | ||
= [https://docs.github.com/en/copilot/configuring-github-copilot/configuring-github-copilot-in-your-environment Configuring GitHub Copilot in your environment] = | |||
= Installation in Visual Studio = | = Installation in Visual Studio = | ||
* GitHub Copilot extension | * GitHub Copilot extension | ||
* GitHub Copilot Chat extension | * GitHub Copilot Chat extension |
Dernière version du 15 avril 2024 à 12:30
Links
Shortcuts
Shortcut | Description |
---|---|
Tab | accept the suggestion |
Alt + . | display the next suggestion |
Alt + , | display the previous suggestion |
Esc | reject the suggestion |
Generating code suggestions from comments
// describe something you want to do using natural language within a comment, and GitHub Copilot will suggest the code to accomplish your goal |
GitHub Copilot Chat
View → GitHub Copilot Chat
Command | Description |
---|---|
# Active document | focus on the code that's currently visible in the editor |
# Selection | focus on the selected code |
# | focus on a specific file |
Configuring GitHub Copilot in your environment
Installation in Visual Studio
- GitHub Copilot extension
- GitHub Copilot Chat extension