GitHub Copilot Installation & Setup Guide for VS Code and JetBrains IDEs (2026)

GitHub Copilot Installation & Setup Guide for VS Code and JetBrains IDEs

GitHub Copilot is an AI-powered coding assistant that provides real-time code suggestions, chat-based help, and workspace-aware intelligence. This guide walks you through installing, configuring, and optimizing Copilot across VS Code and JetBrains IDEs, including language-specific tuning, Copilot Chat, workspace indexing, and organization policy management.

Prerequisites

  • A GitHub account with an active Copilot subscription (Individual, Business, or Enterprise)- VS Code 1.90+ or a JetBrains IDE (IntelliJ IDEA, PyCharm, WebStorm, etc.) version 2024.1+- Node.js 18+ (recommended for workspace indexing features)- Stable internet connection for initial authentication

Step 1: Install the GitHub Copilot Extension

VS Code Installation

  • Open VS Code and navigate to the Extensions panel (Ctrl+Shift+X / Cmd+Shift+X).- Search for GitHub Copilot and click Install. This installs both the inline suggestion engine and Copilot Chat.- Alternatively, install from the command line:code —install-extension GitHub.copilot code —install-extension GitHub.copilot-chat- Reload VS Code when prompted. A Copilot icon will appear in the status bar.- Click the icon and select Sign in to GitHub. Complete the OAuth flow in your browser.

JetBrains IDE Installation

  • Open your JetBrains IDE and go to Settings → Plugins → Marketplace.- Search for GitHub Copilot and click Install.- Restart the IDE when prompted.- Navigate to Settings → Tools → GitHub Copilot and click Login to GitHub.- Copy the device code, open the verification URL in your browser, and paste the code to authorize.

Step 2: Configure Language-Specific Suggestions

Copilot supports all major languages but you can fine-tune which languages receive suggestions.

VS Code — settings.json

{ “github.copilot.enable”: { ”*”: true, “python”: true, “javascript”: true, “typescript”: true, “markdown”: false, “plaintext”: false, “yaml”: true }, “github.copilot.advanced”: { “inlineSuggestCount”: 3, “length”: 500 } }

JetBrains — Language Filters

  • Go to Settings → Tools → GitHub Copilot → Languages.- Toggle individual languages on or off. For example, disable Copilot for .env and .properties files to avoid leaking secrets.- Use file pattern exclusions to block suggestions in sensitive directories:
    # In .copilotignore (place in project root)
    .env
    config/secrets/**
    *.pem
    *.key

Step 3: Set Up Copilot Chat

Copilot Chat provides a conversational interface for code explanation, generation, test writing, and debugging.

VS Code Chat Configuration

  • Open Chat with Ctrl+Shift+I (or Cmd+Shift+I on macOS).- Use slash commands for targeted actions:
    CommandPurposeExample
    /explainExplain selected codeSelect a function, then type /explain
    /fixSuggest a fix for errorsHighlight a bug, type /fix
    /testsGenerate unit tests/tests for the selected function
    /docGenerate documentation/doc add JSDoc comments
    @workspaceQuery the entire project@workspace how is auth handled?

JetBrains Chat

  • Open the Copilot Chat tool window from View → Tool Windows → GitHub Copilot Chat.- The same slash commands work in JetBrains. Right-click any code selection and choose Copilot → Explain This for quick inline help.# Example: Ask Copilot Chat to generate a Python test /tests Write pytest tests for the calculate_discount function in pricing.py

Step 4: Enable Workspace Indexing

Workspace indexing allows Copilot to understand your entire codebase for more relevant suggestions and accurate @workspace answers.

VS Code

{ “github.copilot.chat.codeGeneration.useWorkspaceContext”: true, “github.copilot.chat.indexing.enabled”: true, “github.copilot.chat.indexing.maxFiles”: 5000 }- After enabling, VS Code will index your workspace in the background. Check progress in the Output panel under GitHub Copilot.- For large monorepos, create a .copilotignore file to exclude build artifacts, node_modules, and vendor directories from indexing.

JetBrains

  • Go to Settings → Tools → GitHub Copilot → Indexing.- Enable Project-wide context and configure excluded directories.- Indexing respects your existing .gitignore patterns automatically.

Step 5: Organization Policy Settings

For Copilot Business and Enterprise plans, administrators can enforce policies across the organization.

GitHub Organization Admin Panel

  • Go to github.com → Organization → Settings → Copilot → Policies.- Configure key policies:
    PolicyDescriptionRecommended Setting
    Suggestions matching public codeBlock suggestions that match public repositoriesBlocked (for enterprise compliance)
    Copilot Chat in IDEEnable or disable Chat featuresEnabled
    Copilot in CLIAllow Copilot in GitHub CLIEnabled
    Editor suggestionsAllow inline code completionsEnabled
    Content exclusionsPrevent Copilot from accessing specific repos or pathsConfigure per-repo

Content Exclusion via Organization Settings

# In Organization Settings → Copilot → Content Exclusions

Add repository-level exclusions:

repository: my-org/secrets-repo paths:

  • ”**/*.env”
  • “config/production/**”
  • ”**/credentials.*“

Managing Seat Assignments via CLI

# List current Copilot seat assignments
gh api /orgs/YOUR_ORG/copilot/billing/seats --paginate

# Add a user to Copilot
gh api --method POST /orgs/YOUR_ORG/copilot/billing/selected_users \
  -f selected_usernames[]="developer-username"

# Remove a user
gh api --method DELETE /orgs/YOUR_ORG/copilot/billing/selected_users \
  -f selected_usernames[]="developer-username"

Pro Tips

  • Trigger multiple suggestions: Press Ctrl+Enter in VS Code to open the Copilot completions panel showing up to 10 alternative suggestions.- Inline chat: Press Ctrl+I in VS Code to open an inline chat prompt directly in your editor without switching context.- Custom instructions: Create a .github/copilot-instructions.md file in your repository root to provide project-specific context to Copilot. For example: This project uses FastAPI with SQLAlchemy. Always use async/await patterns and Pydantic v2 models.- Keyboard shortcuts for JetBrains: Use Alt+</code> to manually trigger a suggestion and Tab to accept it. Use Alt+] and Alt+[ to cycle through alternatives.- Prompt engineering: Write a descriptive comment before a function to get better suggestions. Include parameter types, return values, and edge cases in your comment.

Troubleshooting

IssueCauseSolution
Copilot icon shows "Inactive"Authentication expired or subscription lapsedClick the icon and re-authenticate. Verify your subscription at github.com/settings/copilot
No suggestions appearingLanguage disabled or file excludedCheck github.copilot.enable settings and .copilotignore file
Chat returns "Unable to process"Workspace index not built or too largeReduce maxFiles or add exclusions. Restart the extension host
JetBrains plugin not loadingIncompatible IDE versionUpdate to version 2024.1 or later. Reinstall the plugin
Organization policy blocking suggestionsAdmin-enforced content exclusionContact your GitHub org admin to review Copilot policy settings
High latency on suggestionsNetwork or proxy configurationConfigure proxy in IDE settings. Set "http.proxy" in VS Code or JetBrains HTTP settings
## Frequently Asked Questions

Can I use GitHub Copilot offline?

No. GitHub Copilot requires an active internet connection to generate suggestions because the AI model runs on GitHub's cloud servers. However, once suggestions are accepted into your code, you can work offline normally. The Copilot Chat feature also requires connectivity for every interaction.

How do I prevent Copilot from suggesting code that matches public repositories?

For individual users, go to github.com → Settings → Copilot and enable the Block suggestions matching public code filter. For organizations, administrators can enforce this policy at Organization → Settings → Copilot → Policies → Suggestions matching public code → Blocked. This applies a duplication detection filter that suppresses suggestions closely matching publicly available code.

Does GitHub Copilot work with all programming languages?

Copilot supports virtually all languages that appear in public repositories, but it performs best with languages that have extensive training data: Python, JavaScript, TypeScript, Java, C#, C++, Go, Ruby, and Rust. For less common languages, suggestions may be less accurate. You can improve results by providing detailed comments and using the .github/copilot-instructions.md file to specify language conventions and frameworks used in your project.

Explore More Tools

Antigravity AI Content Pipeline Automation Guide: Google Docs to WordPress Publishing Workflow Guide Bolt.new Case Study: Marketing Agency Built 5 Client Dashboards in One Day Case Study Bolt.new Best Practices: Rapid Full-Stack App Generation from Natural Language Prompts Best Practices ChatGPT Advanced Data Analysis (Code Interpreter) Complete Guide: Upload, Analyze, Visualize Guide ChatGPT Custom GPTs Advanced Guide: Actions, API Integration, and Knowledge Base Configuration Guide ChatGPT Voice Mode Guide: Build Voice-First Customer Service and Internal Workflows Guide Claude API Production Chatbot Guide: System Prompt Architecture for Reliable AI Assistants Guide Claude Artifacts Best Practices: Create Interactive Dashboards, Documents, and Code Previews Best Practices Claude Code Hooks Guide: Automate Custom Workflows with Pre and Post Execution Hooks Guide Claude MCP Server Setup Guide: Build Custom Tool Integrations for Claude Code and Claude Desktop Guide Cursor Composer Complete Guide: Multi-File Editing, Inline Diffs, and Agent Mode Guide Cursor Case Study: Solo Founder Built a Next.js SaaS MVP in 2 Weeks with AI-Assisted Development Case Study Cursor Rules Advanced Guide: Project-Specific AI Configuration and Team Coding Standards Guide Devin AI Team Workflow Integration Best Practices: Slack, GitHub, and Code Review Automation Best Practices Devin Case Study: Automated Dependency Upgrade Across 500-Package Python Monorepo Case Study ElevenLabs Case Study: EdTech Startup Localized 200 Course Hours to 8 Languages in 6 Weeks Case Study ElevenLabs Multilingual Dubbing Guide: Automated Video Localization Workflow for Global Content Guide ElevenLabs Voice Design Complete Guide: Create Consistent Character Voices for Games, Podcasts, and Apps Guide Gemini 2.5 Pro vs Claude Sonnet 4 vs GPT-4o: AI Code Generation Comparison 2026 Comparison Gemini API Multimodal Developer Guide: Image, Video, and Document Analysis with Code Examples Guide