====== 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 </dev/null < 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" * SQLite Viewer & SQLite https://marketplace.visualstudio.com/items?itemName=alexcvzz.vscode-sqlite (sudo apt install sqlite3) * move codex icon to right sidebar Keyboard shortcut changes (CTRL+K CTRL+S): * Copy Line Down -> CTRL + D Note: To authenticate the ChatGPT/Codex plugin within VS Code Server docker image, the following needs to be done on the docker main system. The codex binary is in the plugin version's directory and vscode runs under user abc. For this to work, the device auth needs to be enabled in chatgpt codex security settings: docker exec -it -u abc vscode sh -lc ' CODEX_BIN="$(find /config/extensions -path "*/bin/linux-x86_64/codex" | head -n1)" "$CODEX_BIN" login --device-auth ' ===== Codex Rate Limit Plugin ===== https://marketplace.visualstudio.com/items?itemName=xiangz19.codex-ratelimit install from top toolbar: ext install xiangz19.codex-ratelimit Set refresh to 60 seconds. Default is 10 seconds.