Install from the VS Code Marketplace or download the .vsix file from the Releases page and install it manually:
Open VS Code
Go to Extensions view (Ctrl+Shift+X / Cmd+Shift+X)
Click ... > Install from VSIX... and select the downloaded file
Step 3: Sign In and Mount a Folder
Open the Command Palette (Ctrl+Shift+P / Cmd+Shift+P)
Run "Google Drive: Sign In"
Enter your OAuth2 Client ID and Client Secret when prompted
Authorize in the browser window that opens
Run "Google Drive: Browse & Open Folder" to pick a folder, or "Google Drive: Open My Drive (Root)" to mount your entire Drive
Your Google Drive files will appear in the VS Code File Explorer. You can open, edit, and save them just like local files.
Commands
Command
Description
Google Drive: Sign In
Authenticate with Google Drive
Google Drive: Sign Out
Sign out and revoke tokens
Google Drive: Browse & Open Folder
Browse Drive and pick a folder to mount
Google Drive: Open My Drive (Root)
Mount the entire Drive root
Conflict Detection
When you save a file, the extension checks whether the file was modified on Google Drive by someone else (or another device) since you opened it. If a conflict is detected, you'll see a warning dialog with the option to Overwrite or Cancel. This prevents accidentally losing changes made elsewhere.
Known Limitations
Google Workspace documents (Docs, Sheets, Slides) are not shown in the file explorer since they cannot be downloaded as raw files
No real-time sync — changes made outside VS Code won't appear until you refresh
Google Drive allows duplicate file names in a folder; only the first match is used during path resolution