← MacSELECT * FROM Shiraverse · All Nukte
Get startedSetupMac › Manual › VS Code and Git

Install VS Code and Git on Mac (step by step)

Two tools, two commands: VS Code for writing SQL and Git for saving your work. No AI extensions yet.

Jo video mein bola, yahan nukte mein likha hai.
What I said in the video, written here as key points.

▶ Watch the video

Mac › Manual › VS Code + Git

Install VS Code and Git

📝
VS Codewrite your SQL files
🌿
Gitsave every version of your work

Do tool, do command. Two tools, two commands.

VS Code is a free editor where you will write and save SQL files. Git keeps every version of your work. Homebrew installs both. A notice: no AI extensions yet. Do not install Copilot or AI autocomplete now. You learn faster when you type every query yourself.

Step 1

Two commands

Terminal– □ ×
~ % brew install --cask visual-studio-code visual-studio-code was successfully installed! ~ % brew install git ==> Summary

Cask is for apps you open. Plain install is for command tools.

Install them:

brew install --cask visual-studio-code
brew install git

VS Code is an app, so it uses --cask. Git is a command line tool, so it does not.

Step 2

Turn on the code command

1
Open VS Codefrom Applications
2
Press Cmd + Shift + Pthe command palette
3
Type "shell command"pick the Install line
4
Choose itInstall 'code' command in PATH

Now code works in Terminal.

Open VS Code, press Cmd + Shift + P, type shell command, and choose Shell Command: Install 'code' command in PATH. Then open a new Terminal window and type code --version.

Step 3

Two extensions, no more

🧩
SQLToolsSQL query runner
PostgreSQL logo
SQLTools PostgreSQLPostgreSQL driver

Extensions icon, or press Cmd + Shift + X. Install only these two.

In VS Code, click the Extensions icon on the left (or press Cmd + Shift + X) and install SQLTools and SQLTools PostgreSQL. Nothing else. No Copilot, no AI autocomplete, not yet.

If something goes wrong

Common problems

code: command not foundOpen VS Code, Cmd + Shift + P, run Shell Command: Install 'code' command in PATH.
git: command not foundOpen a new Terminal window. Still no? Run brew install git again.
Mac asks to install developer toolsClick Install and wait. That is Apple's own Git.

Tell me exactly what the screen says. Ghabrana nahi.

  • code: command not found: open VS Code, press Cmd + Shift + P and run Shell Command: Install 'code' command in PATH.
  • git: command not found: open a new Terminal window. Still no? Run brew install git again.
  • Mac asks to install developer tools: click Install and wait.
Your turn

Which extensions did you install?

sql.theshiraverse.com

Tell me in the comments. Milte hain agli video mein. Next: check everything together.

Free SQL course and the Setup page, which maps every step. Join the WhatsApp Community, the Channel or Discord.

→ / Space next   ← back   F fullscreen   H hide bars   N notes