Skip to content

GitHub Copilot in VSCode | Quick Setup, Shortcuts & Features

GitHub Copilot is an AI-powered coding assistant that helps you write code faster and smarter in Visual Studio Code. Copilot offers real-time code suggestions, entire function completions, inline explanations, and even AI chat supportβ€”all integrated directly inside VSCode.


  • Instantly suggests lines, code blocks, or entire functions as you type.
  • Learns from your code context and adapts to your style.
  • Use a conversational chat panel to ask questions about your code, frameworks, or get explanations.
  • Can generate code snippets, debug, or refactor code via chat.
  • Access Copilot Chat from the side panel or with the keyboard shortcut.
  • Suggestions appear as ghost text inline with your code.
  • Accept, cycle, or discard suggestions with simple keystrokes.
  • Insert suggestions directly into your file.
  • Accept partial lines, full functions, or whole files.
  • Quickly apply, edit, or reject AI-generated code.
  • Works with over a dozen languages including Python, JavaScript, TypeScript, C#, Java, Go, and more.
  • Copilot can explain code, generate docstrings, and provide comments inline or via chat.

  1. Install GitHub Copilot Extension:

    • Go to the Extensions panel (Ctrl+Shift+X), search for GitHub Copilot, and click Install.
    • For Copilot Chat, install the GitHub Copilot Chat extension.
  2. Sign In:

    • Click Sign in to GitHub when prompted.
    • Authorize the extension in your browser and return to VSCode.
  3. Start Coding:

    • Begin typing in a supported language file. Copilot will suggest completions automatically.

ActionShortcut (Windows/Linux)Shortcut (Mac)
Accept suggestionTabTab
Reject suggestionEscEsc
Next suggestionAlt+[Option+[
Previous suggestionAlt+]Option+]
Open Copilot ChatCtrl+ICmd+I
Trigger inline suggestionCtrl+EnterCmd+Enter
Open command paletteCtrl+Shift+PCmd+Shift+P

  • Ask Copilot in Chat:
    Open the chat panel and type natural language questions, like:

    • β€œExplain this function.”
    • β€œHow do I reverse a linked list in Python?”
    • β€œGenerate a unit test for this method.”
  • Accept or Discard Suggestions:

    • Press Tab to accept the suggestion.
    • Press Esc to dismiss it.
    • Use Alt+[ or Alt+] to cycle through alternate suggestions.
  • Apply Code Directly:

    • Suggestions are inserted directly at the cursor.
    • You can edit AI-generated code just like regular code.

  • Autocomplete entire functions and complex logic
  • Add documentation comments or explanations
  • Get instant answers and code snippets via Copilot Chat
  • Accept, modify, or discard suggestions as you code
  • Refactor or debug with Copilot’s contextual help

  • Free: For students, teachers, and open-source maintainers.
  • Personal: $10/month or $100/year for individuals.
  • Business: $19/user/month, includes advanced security and admin controls.

GitHub Copilot for VSCode is redefining developer productivity. With features like inline suggestions, chat-based code help, and seamless integration, you can code, learn, and solve problems faster than ever.

πŸš€ Try Copilot today in Visual Studio Code and experience AI-powered development!


Let me know if you want more shortcuts, feature tips, or a troubleshooting guide for Copilot in VSCode!