« Github Copilot » : différence entre les versions

De Banane Atomic
Aller à la navigationAller à la recherche
 
(5 versions intermédiaires par le même utilisateur non affichées)
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?]


= [https://docs.github.com/en/copilot/configuring-github-copilot/configuring-github-copilot-in-your-environment?tool=visualstudio#using-default-keyboard-shortcuts Shortcuts] =
= Shortcuts =
{| class="wikitable wtp wtmono1"
{| class="wikitable wtp wtmono1"
! Shortcut !! Description
! Shortcut !! Description
Ligne 16 : Ligne 16 :
|}
|}


{| class="wikitable wtp wtmono2"  
= [https://docs.github.com/en/copilot/using-github-copilot/getting-started-with-github-copilot#generating-code-suggestions-from-comments-1 Generating code suggestions from comments] =
! Action
<kode lang='cs'>
! Shortcut
// describe something you want to do using natural language within a comment, and GitHub Copilot will suggest the code to accomplish your goal
! Command name
</kode>
 
= [https://docs.github.com/en/copilot/github-copilot-chat/using-github-copilot-chat-in-your-ide GitHub Copilot Chat] =
View → GitHub Copilot Chat
 
{| class="wikitable wtp wtmono1"  
! Command
! Description
|-
|-
| Show next inline suggestion || Alt + . || Edit.NextSuggestion
| /doc || add documentation comment
|-
|-
| Show previous inline suggestion || Alt + , || Edit.PreviousSuggestion
| /explain ||  
|-
|-
| Trigger inline suggestion || Ctrl + Alt + \ || Edit.Copilot.TriggerInlineSuggestion
| /fix || propose a fix for problems
|-
| /help ||
|-
| /optimize || analyze and improve running time
|-
| /tests || create unit tests
|}
|}
= [https://docs.github.com/en/copilot/github-copilot-chat/using-github-copilot-chat-in-your-ide GitHub Copilot Chat] =
View → GitHub Copilot Chat


{| class="wikitable wtp wtmono1"  
{| class="wikitable wtp wtmono1"  
! Command
! Reference code
! Description
! Description
|-
|-
Ligne 41 : Ligne 51 :
| # || 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 is installed as a component with Visual Studio installer
* GitHub Copilot Chat extension

Dernière version du 10 juillet 2024 à 10:18

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

Cs.svg
// 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
/doc add documentation comment
/explain
/fix propose a fix for problems
/help
/optimize analyze and improve running time
/tests create unit tests
Reference code 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 is installed as a component with Visual Studio installer