📂 GistPilot β VS Code Extension



📦 Version: v0.0.4
β Now with Gist QR Sharing, ZIP Import/Export, AI Summarizer, Playground, Star/Fork and more!
β¨ Features
β
Open a GitHub Gist as a folder, preserving nested structure using filenames
β
Create public or private Gists directly from any file
β
Add individual files or full folders to an existing Gist
β
Delete specific files or the entire Gist
β
Flatten folder paths using ...
so Gist can simulate subfolders
β
Built-in GitHub token authentication with validation
β
Tokens are stored securely using VS Code's SecretStorage
β
Works behind firewalls and proxies (no browser dependency)
🆕 v0.0.4 β New Power Features
Feature |
Description |
📤 Share via QR / Shortlink |
Generate a shareable QR code or shortlink for any Gist |
🧳 Import / Export ZIP |
Export entire Gist as ZIP or import ZIP folder into Gist |
🤖 AI Summarizer (OpenAI & Gemini) |
Choose between OpenAI or Google Gemini to summarize code (No keys are stored) |
🔁 Auto-Sync Toggle |
Enable or disable syncing Gist updates on save |
β Star / Unstar Gist |
Mark Gists as favorite and manage them |
🍴 Fork Gist |
Instantly create a forked version of a Gist |
🧷 Scratch Notes |
Create markdown notes directly saved to a personal Gist |
🖼οΈ Paste Image to Gist |
Paste image as file (markdown / base64 supported) |
🧪 Comment Threads |
Basic UI for commenting and viewing threads on files |
🌍 Follow GitHub Users |
Follow and browse public Gists from other GitHub users |
🧩 Code Playground |
Advanced CodeSwing-style environment for experimenting with code live |
🔐 Setting Up Your GitHub Token
Creating or editing Gists requires authentication. Follow these steps to create and add your GitHub Personal Access Token:
🔑 How to Create a GitHub Token
- Go to https://github.com/settings/tokens
- Click "Fine-grained tokens" β then "Generate new token"
- Name your token (e.g.,
VS Code Gist
)
- Set:
- Expiration: Choose 30 days or "No expiration"
- Repository access: Doesn't matter for Gists
- Permissions:
- Under Gists, check β
Read and write
- Click Generate token
- Copy the token β you wonβt see it again!
🚀 Adding Token to Extension
- In VS Code, press
F1
- Run
GistPilot: Set GitHub Token
- Paste the token you created
🔐 Your token is securely saved via VS Codeβs SecretStorage.
To remove it:
F1
β GistPilot: Clear GitHub Token
🛠οΈ Usage Guide
📂 Open Gist by ID
- Run:
GistPilot: Open Gist by ID
- Paste your Gist ID (e.g.,
abcd12345
)
- It will open as a folder in VS Code
β‘οΈ Supports folder-like files: src...main.cpp
β src/main.cpp
βοΈ Create a New Gist
- Open any file
- Run:
GistPilot: Create New Gist
- Enter description + choose Public/Private
- Gist is created and ID is copied to your clipboard
📁 Upload a Folder to a Gist
- Run:
GistPilot: Upload Folder to Gist
- Select a folder from your system
- Enter the target Gist ID
- All files will be uploaded using
...
to simulate folder paths
β Add File to Gist
- Run:
GistPilot: Add File to Gist
- Select file β Enter Gist ID β Done!
β Remove File from Gist
- Run:
GistPilot: Remove File from Gist
- Enter Gist ID and file name (e.g.,
src...index.js
)
🗑οΈ Delete a Gist
- Run:
GistPilot: Delete Gist
- Enter Gist ID β Gist is permanently deleted
🤖 AI Summarizer (OpenAI & Gemini)
- Run:
GistPilot: Summarize Gist with AI
- Select your AI provider (OpenAI or Gemini)
- The extension uses these optional settings:
open-gist.aiProvider
(default: openai
)
open-gist.openaiApiKey
(OpenAI users)
open-gist.geminiApiKey
(Gemini users)
💡 Your API key is never saved to disk. For security, itβs used only in memory for the session.
🔐 How to Get Your API Key
🧠 OpenAI
- Visit: https://platform.openai.com/account/api-keys
- Log in with your OpenAI account
- Click βCreate new secret keyβ
- Copy the key (starts with
sk-...
) and paste it when prompted in VS Code
🪄 Gemini (Google AI Studio)
- Visit: https://makersuite.google.com/app/apikey
- Log in with your Google account
- Click βGet API keyβ
- Copy the key (starts with
AIza...
) and paste it when prompted in VS Code
🛡οΈ For privacy and security, your API keys are only used during the current session β they are never saved to disk.
🔁 Toggle Auto-Sync
- Run:
GistPilot: Toggle Auto Gist Sync
- This toggles setting:
open-gist.autoSync
in user preferences
β Star / 🍴 Fork Gist
- Run:
GistPilot: Star/Unstar Gist
- In Gist Explorer, right-click a Gist
- Select
Star Gist
, Unstar Gist
, or Fork Gist
- Forked Gist opens in a new workspace window
🧷 Scratch Notes
- Run:
GistPilot: Create Scratch Note
- Generates a markdown note with timestamp in your scratch Gist
🖼οΈ Paste Image into Gist File
- Copy any image (Ctrl+C)
- Focus on a file inside Gist in editor, press
Ctrl+V
- Uploads as:
- File with markdown reference
- OR embedded base64 block, based on config
- Open a Gist file
- Threads are shown below file
- Click to expand, reply, or hide comment threads
🌍 Follow GitHub Users
- Run:
GistPilot: Follow GitHub User
- Explore public Gists from followed users in Gist Explorer
🧩 Code Playground (Live Preview)
- Run:
GistPilot: Create Code Playground
- Opens an HTML/CSS/JS/Markdown preview with instant updates
- Ideal for quick experiments and sharing via Gists
📤 Share Gist via QR Code / Shortlink
- Run:
GistPilot: Share Gist as QR
- Paste your Gist ID or select an active file
- A QR image will be shown in the panel and shortlink copied to clipboard
💡 Great for presentations, mobile scanning, quick sharing.
🧳 Import / Export Gist as ZIP
- Run:
GistPilot: Export Gist to ZIP
β Select Gist ID β ZIP saved to disk
- Run:
GistPilot: Import Gist from ZIP
β Select ZIP file β Files extracted and pushed to GitHub
- For Import Feature Github Token is required so first set your github token.
📁 Folder structure is preserved using
...
convention. Automatically maps filenames.
🎬 Tutorials (Coming Soon)
- 📹 How to create and set a GitHub token
- 📹 How to upload a folder to a Gist
- 📹 How to use the AI summarizer and auto-sync
📺 Video links will appear here once available
👨β💻 Maintained by @coderbro
- 🧠 Love the tool? Star it on GitHub!
- 💬 Issues, suggestions, or feature requests welcome.
📄 License
Apache License 2.0 Β© coderbro










#gist
#github
#gist-explorer
#vscode-extension
#auto-sync
#openai
#code-summary
#cloud-snippets
#code-sharing
#developer-tools
#open-gist
#code-manager
#ai-powered
#vscode-gist
#gist-manager
#gist-sync
#upload-to-gist
#gist-folder
#file-sync
#vscode-integrations