Skip to content
Pinter Computing

Knowledge Base for IT Professionals, Teachers, and Astronauts

Pinter Computing

Knowledge Base for IT Professionals, Teachers, and Astronauts

  • Home
  • Programming
  • DevOps
  • Project Management
  • Software and Hardware
  • Miscellaneous
  • Egyebek
  • About
  • Experience
  • Education
  • Contact
  • Home
  • Programming
  • DevOps
  • Project Management
  • Software and Hardware
  • Miscellaneous
  • Egyebek
  • About
  • Experience
  • Education
  • Contact
Close

Search

Home/Knowledge Base/Using GitHub Copilot on the workstation
Knowledge Base

Using GitHub Copilot on the workstation

By Laszlo Pinter
March 27, 2023 4 Min Read
0

GitHub Copilot is a ChatGPT based AI pair programmer extension for Visual Studio Code, Visual Studio, JetBrains IDE, and Neovim. It is most effective in Python, JavaScript, TypeScript, Ruby, Go, C# and C++.

Installation

GitHub Copilot has personal and business subscription models. Start your free trial at https://github.com/features/copilot

  • Install the extension in Visual Studio Code or Visual Studio, see https://docs.github.com/en/copilot/quickstart

Configuration

See GitHub Copilot Configuration settings

Ask for suggestions

  • Create a file with the standard file extension of the language to indicate the preferred programming language to the AI.
  • Start to create a function with the name that describes its purpose (in this example we will use the JavaScript syntax)
    function getDaysInMonth(month, year) {
    (If your IDE automatically adds the closing curly brace, remove it, otherwise Copilot does not offer solutions)
    or
  • Create a comment to describe the functionality
    // Express server on port 3000 and return the current date

Select the suggestion

  • Use the Alt-[ and Alt-] on Windows, Option-[ and Option-] on Mac to cycle through the suggested solutions and press Tab to accept it, or Esc to reject all of them.

See all suggestions in a new tab

  • Press Ctrl-Enter to open a new tab, and a few seconds later all suggestions will be listed in the new tab.
  • Click the Accept Solution link above the suggestion to insert it into your file.

For more information see the documentation

To activate and deactivate the GitHub Copilot

  • In the lower right corner of the editor click the Copilot icon
  • Select the scope to disable GitHub Copilot: for all languages, or for a specific language only.

Tutorials

There are GitHub repositories to learn to use GitHub Copilot. The Tutorials for GitHub Copilot page lists all of them. These are interactive repositories to learn the skills using real code:

  • skills-getting-started-with-github-copilot – The basics of using GitHub Copilot
  • skills-expand-your-team-with-copilot – How to use GitHub AI agents to do complex tasks in your repository

Interaction modes

GitHub Copilot has two main modes: Ask mode and Agent mode

Ask is an interactive communication mode, where the Copilot is a chat companion to give you information on the inner workings of the code, and give you brainstorming ideas.

Agent mode can make autonomous edits across multiple files in the project.

GitHub copilot Cheat Sheets

UI specific commands to enhance the work with Chat and Agent at GitHub Copilot Chat cheat sheet
The Visual Studio specific commands are:

Chat participants

Chat participants are like domain experts with specialty knowledge. Specify the chat participant with the @ symbol in your prompt. Most common chat participants are

VariableSpecialty
@azureAzure services
– Service deployment and management.
– App deployment to Azure.
@githubGitHub
– GitHub specific skills.
@terminalVisual Studio Code Terminal
– To create and debug Terminal commands
@vscodeVisual Studio Code
– Commands and features
@workspaceThe current workspace
– Project structure
– Code parts interaction
– Design patterns

For more information see Chat participants

Chat variables

Chat variables give specific context in the prompt. The chat variables are

VariableDescription
#blockIncludes the current block of code in the prompt.
#classIncludes the current class in the prompt.
#commentIncludes the current comment in the prompt.
#fileIncludes the current file’s content in the prompt.
#functionIncludes the current function or method in the prompt.
#lineIncludes the current line of code in the prompt.
#pathIncludes the file path in the prompt.
#projectIncludes the project context in the prompt.
#selectionIncludes the currently selected text in the prompt.
#symIncludes the current symbol in the prompt

For more information see Chat variables

Slash commands

Slash commands are frequently used instructions:

CommandDescription
/clearStart a new chat session.
/explainExplain how the code in your active editor works.
/fixPropose a fix for problems in the selected code.
/fixTestFailureFind and fix a failing test.
/helpQuick reference and basics of using GitHub Copilot.
/newCreate a new project.
/testsGenerate unit tests for the selected code.

For more visit Slash commands

Tools in chat

Type the # sign in the chat prompt to display the list of tools. The list contains the list of files referenced in the current chat, and the available tools.

For more about tools see Use tools in chat

MCP Servers

To enable the MCP gallery in the Visual Studio Code extension explorer

  • Open Visual Studio Code settings
  • Search for chat.mcp.gallery.enabled
  • Select the checkbox

Some of the MCP server registries are

  • GitHub MCP server registry The Visual Studio Code Extensions view provides access to it.
  • MCP’s official server repository
  • Visual Studio Marketplace

Starting MVP servers as Docker containers

When using Docker with stdio servers, don’t use the detach option (-d). The server must run in the foreground to communicate with VS Code.

For more on MCP Servers see Use MCP servers in VS Code

Inline Chat

Inline chat can help you with fast responses related to a particular line in the code. To invoke it move the cursor to the line and press Ctrl-I (Cmd-I on Mac), or right-click the line and select Copilot, Editor Inline Chat. If you want the AI to insert lines in to your code, like generating test data by adding elements to an array, place the cursor where the lines should go.

Author

Laszlo Pinter

Follow Me
Other Articles
Previous

Kerbal Space Program 2 configuration

Next

Create a React web site

No Comment! Be the first one.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Search

Last Changes

  • DevOps Engineering part 1. (Mac) - Make your Macintosh easier to use June 25, 2026
  • Japan travel tips June 22, 2026
  • How to stop the rain and snow in Cities: Skylines II June 20, 2026
  • Cities: Skylines II Developer Mode June 20, 2026
  • 'CSII_MANAGEDPATH' has incorrect path(s) when building Cities: Skylines II mod June 20, 2026

Tags

.NET .NETcore 3Dprinting ASP.NET Core AutodeskInventor AWS C# Chef cloud DevOps Docker EntityFramework Games Git Go iOS iPad iPhone iPod Java Kubernetes Linux MacOSX MSSQL MVC Node.js Packer PowerShell Python RDS RightScale Ruby security Splunk TeamCity Terraform TestKitchen Tomcat Ubuntu Vagrant VirtualBox VisualStudio Windows WordPress Xcode

Recent Comments

  • Zengei László on MyHeritage családfa exportálása és küldése emailben
  • Raúl Castillo on DynDns update error
  • MICHAEL on Windows Media Player 12 cannot find the album information
  • Nargis on Configure Epson ET-3850 scanning on Windows 11
  • Venczelné Zemen Erika on Delta S2302 termosztát programozása

–

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Copyright 2026 — Pinter Computing. All rights reserved.