User Tools

Site Tools


config:vscode

VS Code

This article describes the installation and basic configuration for Microsoft Visual Studio Code including Python and OpenAI Codex support.

sudo apt-get install wget gpg && wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg && sudo install -D -o root -g root -m 644 microsoft.gpg /usr/share/keyrings/microsoft.gpg && rm -f microsoft.gpg

sudo tee /etc/apt/sources.list.d/vscode.sources &>/dev/null <<EOF
Types: deb
URIs: https://packages.microsoft.com/repos/code
Suites: stable
Components: main
Architectures: amd64,arm64,armhf
Signed-By: /usr/share/keyrings/microsoft.gpg
EOF

sudo apt install apt-transport-https && sudo apt update && sudo apt install code
sudo apt-get install gvfs libglib2.0-bin

sudo tee -a /etc/sysctl.conf &>/dev/null <<EOF
fs.inotify.max_user_watches=524288
EOF

sudo sysctl -p

Disable the internal AI features and telemetry:

  • Settings → Chat → Disable AI Features
  • Settings → telemetry.telemetryLevel → Off
  • Settings → application → update → update:mode → None (as updated through apt)

Marketplace addons/plugins/extensions:

  • install “openai codex”, “git graph” and “python”
  • move codex icon to right sidebar

Keyboard shortcut changes (CTRL+K CTRL+S):

  • Copy Line Down → CTRL + D
config/vscode.txt · Last modified: by Wuff