« Github Copilot » : différence entre les versions

De Banane Atomic
Aller à la navigationAller à la recherche
Ligne 15 : Ligne 15 :
| Esc || reject the suggestion
| Esc || reject the suggestion
|}
|}
= [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] =
<kode lang='cs'>
// describe something you want to do using natural language within a comment, and GitHub Copilot will suggest the code to accomplish your goal
</kode>


= [https://docs.github.com/en/copilot/github-copilot-chat/using-github-copilot-chat-in-your-ide GitHub Copilot Chat] =
= [https://docs.github.com/en/copilot/github-copilot-chat/using-github-copilot-chat-in-your-ide GitHub Copilot Chat] =

Version du 15 avril 2024 à 12:28

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
# Active document focus on the code that's currently visible in the editor
# Selection focus on the selected code
# focus on a specific file

Installation in Visual Studio

  • GitHub Copilot extension
  • GitHub Copilot Chat extension