Developer Blog

Tipps und Tricks für Entwickler und IT-Interessierte

Add CoPilot functionality to VSCode with Open Source tools

Introduction

The GitHub Copilot extension is an AI pair programmer tool that helps you write code faster and smarter. 

We want to use this feature with Open Source Tools:

Setup

Install Ollama

Download Ollama and install it.

To start Ollama, you have two possibilities:

From the command line

Using the Icon from the Installation

With MacOS, you could start Ollama

You should the the runnning Ollama instance in the header

Pull Phi3 Model

Run

ollama pull phi3

Install VS Code

Install VS Code Extension Continue

Start Model

Configure VS Code Extension

VS Code | Cookbook

Extensions

Copy installed extensions to another VS Code

code --list-extensions | xargs -I {} code_insiders --install-extension {}

Formatting

{
	"singleQuote": true,
	"trailingComma": "all",
	"tabWidth": 4,
	"semi": true
}

settings.json

"editor.formatOnSave": true,
"editor.tabCompletion": "on",
"files.exclude": {
	"resources": true,
	"package-lock.json": true,
	".editorconfig": true,
	"node_modules": true,
	"src/environments": true
}