Visual Studio Code Installation
1. Installation
-
Open the appropriate OS section:
Expand for Windows
-
Download the installer from here.
Expand for Rhel
-
Original install doc can be referenced here.
-
Steps:
-
Install the key and repo
sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc\ -
Install the repo
sudo sh -c 'echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/yum.repos.d/vscode.repo' -
Update the package cache
dnf check-update -
Install
sudo dnf install code
-
Expand for Ubuntu
-
Original install doc can be referenced here.
-
If Snap is installed then:
sudo snap install --classic code
Expand for Fedora
-
If Snap is installed then:
sudo snap install --classic code -
Alternate to Snap
-
Visit the VS Code Download page and download the .rpm package.
-
Now Install
sudo dnf -y localinstall ./code-1.121.0-1779186559.el8.x86_64.rpm (1)1 Use the downloaded file’s name
-
-
2. Configuration
2.1. Edit Config
-
Add the following to the VSCode settings file:
-
Open the config file for editing:
Unix Config File location~/.config/Code/User/settings.jsonYou may need to create the folder first with:
mkdir -p ~/.config/Code/UserWindows Config File location%APPDATA%\Code\User\settings.json -
Add these key-value pairs:
New entries"git.autofetch": true, "workbench.sideBar.location": "right", "files.autoSave": "afterDelay", "window.titleBarStyle": "native", (1) "workbench.colorTheme": "Visual Studio Light", "workbench.iconTheme": "material-icon-theme", "workbench.experimental.modernUI": true, "editor.codeLens": false, "explorer.compactFolders": false, "plantuml.render": "PlantUMLServer", "plantuml.server": "https://plantuml.xackleystudio.com/plantuml", (2) "asciidoc.extensions.enableKroki": true, "asciidoc.preview.defaultStyle": "antora", "python.analysis.typeCheckingMode": "strict",1 This is a workaround for the SSH X11 forwarding Window Resize bug. 2 Use a valid PlantUML Server.
-
3. Extension Configuration
3.1. Continue
-
Reference this Continue doc.
4. AI Configuration
If you want to use a model that is not available as a built-in model or want to control the model hosting, you can bring your own language model API key (BYOK) to use models from other providers or to run models locally. For background on why you might bring your own key and what to consider, see Bring your own language model key.
BYOK models work without signing in to a GitHub account and without a Copilot plan. You can add models with the Chat: Manage Language Models command even when you are not signed in. This enables you to use AI chat features entirely with your own models, including fully offline scenarios with local models such as Ollama.
4.1. Via Gui
-
Open the cmd palette window with: cntrl+shift+p
-
Select
Chat: Manage Language Models -
Click the + Add Model… drop down button.
-
Choose Ollama.
-
Supply a
Group Name. -
Supply the IP address or server name.
4.2. Via JSON
-
Edit the
chatLanguageModels.jsonfile:Linux~/.config/Code/User/chatLanguageModels.jsonWindowsC:\Users\<user name>\AppData\Roaming\Code\User\chatLanguageModels.jsonSample config[ { "name": "Ollama p-rocky-ai", "vendor": "ollama", "url": "http://p-rocky-ai:11434" }, { "name": "Ollama p-rocky-phoenix", "vendor": "ollama", "url": "http://192.168.1.53:11434" } ] -
To open the
chat windowuse one of:-
Menu:
-
cntrl+alt+i
-
-
In the bottom of the chat window, click on the currently selected model.
-
From here you can either search for a model or click on Other Models and choose one of the other local models.