How to configure GitHub Copilot for real-time feedback during coding sessions?

Content verified by Anycode AI
August 26, 2024
Learn how to set up GitHub Copilot for real-time coding feedback. This guide covers installation, configuration, and tips to enhance your coding sessions.

Step 1: Ensure Requirements Are Met

First things first, make sure you've got everything you need: a GitHub account, an active GitHub Copilot subscription, and a supported code editor like Visual Studio Code, JetBrains IDEs, or Neovim.

 

Step 2: Install GitHub Copilot Extension

Next up, install the GitHub Copilot extension or plugin in your chosen code editor.
 
 

Visual Studio Code:

 

  1. Fire up Visual Studio Code.
  2. Click on the Extensions icon in the Activity Bar on the side of the window.
  3. Type "GitHub Copilot" in the search bar and pick the GitHub Copilot extension.
  4. Hit "Install".

 

 

JetBrains IDEs:

 

  1. Open your JetBrains IDE (like IntelliJ IDEA).
  2. Head to File > Settings (or Preferences on macOS).
  3. Go to Plugins.
  4. Search for "GitHub Copilot".
  5. Click "Install".

 

Step 3: Sign In to GitHub

After installing the extension or plugin, sign in to GitHub to get GitHub Copilot up and running.

 

Visual Studio Code:

 

  1. Open the Command Palette with Ctrl+Shift+P.
  2. Type "GitHub Copilot: Sign In" and select it.
  3. Follow the prompts to authenticate.
     

 

JetBrains IDEs:

 

  1. Look for a Copilot icon in the IDE toolbar or status bar.
  2. Click the icon and choose to sign in.
  3. Follow the authentication steps.
     

Step 4: Adjust Copilot Settings

Tweak GitHub Copilot settings to make it work just the way you like during your coding sessions.

 

Visual Studio Code:

 

  1. Open the Command Palette with Ctrl+Shift+P.
  2. Type "Preferences: Open Settings (UI)" and select it.
  3. In the Settings, search for "GitHub Copilot".
  4. Adjust settings like enabling or disabling Copilot suggestions, setting suggestions display preferences, etc.
     

 

JetBrains IDEs:

 

  1. Go to File > Settings (or Preferences on macOS).
  2. Navigate to Tools > GitHub Copilot.
  3. Adjust preferences like code completion, feedback options, and more.

 

Step 5: Start Coding

Now, start coding in your editor. GitHub Copilot will automatically start providing real-time suggestions and code completions as you write.

 

 

To accept Copilot’s suggestions, press Tab. To see more suggestions, press Ctrl+Space. Refine the workflow based on what's most comfortable and efficient.

 

Step 6: Utilize Copilot’s Feedback Loop

Engage with the feedback loop by letting Copilot learn from your coding style and adjustments. The more you interact with and accept or reject its suggestions, the better it will adapt to your preference over time.

Improve your CAST Scores by 20% with Anycode Security AI

Have any questions?
Alex (a person who's writing this 😄) and Anubis are happy to connect for a 10-minute Zoom call to demonstrate Anycode Security in action. (We're also developing an IDE Extension that works with GitHub Co-Pilot, and extremely excited to show you the Beta)
Get Beta Access
Anubis Watal
CTO at Anycode
Alex Hudym
CEO at Anycode