← Lab 6

Where settings live

Everything about VS Code can be changed, and it is all in one place. There are two ways in: the same settings, shown two ways.

The Settings editor: search and tick
  • ▸Open it: Cmd , on a Mac, Ctrl , on Windows
  • ▸Type in the search box. Every setting has a name, so you never need to scroll
  • ▸User tab: every folder you open · Workspace tab: this project only
settings.json: the same thing as text

Cmd/Ctrl Shift P → Preferences: Open User Settings (JSON). Handy for copying settings from a tutorial:

settings.json
{
  "editor.fontSize": 16,
  "files.autoSave": "afterDelay"
}

Turn off the ghost text

Same rule as Gemini in Colab: write the line yourself before you see an answer. There are two kinds of suggestion, and only one of them is AI.

✅ Keep: the IntelliSense dropdown

Type df. and a list appears of methods that really exist, such as head and groupby. It looks things up for you; it doesn't write code for you. Leave it on.

🚫 Switch off: AI that writes the line

The grey "ghost" code that appears ahead of your cursor, and the chat panel. In Settings, search disable AI features and tick it:

settings.json
"chat.disableAIFeatures": true

Later in the course, when you know what good code looks like, you can switch it back on. That is a decision for you to make on purpose, not a default.

Make it comfortable

Quick changes, no settings file
  • ▸Theme: Cmd/Ctrl K, then Cmd/Ctrl T. Arrow through them and watch the editor change
  • ▸Zoom the whole window: Cmd/Ctrl + and Cmd/Ctrl −
  • ▸Wrap long lines: Option Z (Mac) or Alt Z (Windows)
  • ▸Can't find a command? Cmd/Ctrl Shift P searches all of them
A sensible starting point
settings.json
{
  "editor.fontSize": 15,
  "editor.wordWrap": "on",
  "editor.minimap.enabled": false,
  "files.autoSave": "afterDelay",
  "chat.disableAIFeatures": true
}

Auto save means a script always runs the version you see on screen.