Use the Snowflake SQL extension in VS Code to authenticate, browse objects, and run queries against your Snowflake warehouse directly from the editor.
Install Visual Studio Code (latest), Node.js ≥ 18 for the extension host, and make sure your Snowflake account, role, and warehouse are active and whitelisted for your IP.
Open VS Code ➜ Extensions (⇧⌘X
/ Ctrl+Shift+X
) ➜ search “Snowflake” ➜ click “Snowflake SQL Tools” ➜ Install ➜ Reload Window when prompted.
Press F1
➜ "Snowflake: Add Connection" ➜ enter account
, user
, role
, warehouse
, and choose an authType
(password, SSO, or key-pair).Save the profile with a descriptive name like dev_ecommerce
.
Open Command Palette ➜ "Snowflake: Connect" ➜ pick dev_ecommerce
. A status bar icon turns green when authenticated. The Explorer panel now lists databases, schemas, and tables.
Create a new .sql
file ➜ type your statement ➜ highlight selection ➜ Run Query (⌘Enter
/Ctrl+Enter
).Results appear in an editable grid with export buttons.
Use the Snowflake extension’s ${var}
placeholders or switch to Galaxy to store the query in a Collection, add endorsements, and let the AI copilot generate column descriptions.
Separate dev and prod profiles, use key-pair auth for CI, set QUERY_TAG
for observability, and keep the Results panel size small to avoid memory spikes.
401 “Incorrect username or password” ➜ verify user
and authType
.390191 “Role not granted” ➜ GRANT usage on the warehouse or switch roles.
With the Snowflake SQL extension you can connect, explore objects, and run queries from VS Code. Pair it with Galaxy for AI-assisted SQL, versioning, and team-wide collaboration.
.
Yes, the extension is open-source and free. You only pay normal Snowflake credits for executed queries.
Choose authType: "externalbrowser"
in the connection profile. A browser window opens for Okta or any configured IdP.
Hit F1
➜ "Snowflake: Switch Role" ➜ pick the desired role. The status bar updates instantly.