GistPad is a Visual Studio Code extension that allows you to develop GitHub Gists entirely from within the editor. You can open, create, delete and fork Gists, and then seamlessly begin editing files, as if they were local. It's like your very own, cloud-based scratchpad and code snippet manager. Additionally, you can collaborate with your friends and colleagues by "following" them, so that you can access/browse/fork and comment on their Gists, directly from within Visual Studio Code
Install this extension from the marketplace
Linux Users: Ensure you have the
libsecretpackages installed as well. These will enable GistPad to read/write your GitHub auth token securely.
Explorertab and expand the
Gistsview. From there, you can open a Gist by ID/URL, or sign-in in wth a GitHub token, in order to view/edit/create/delete Gists.
In order to generate a new token, simply visit this page, give it a name (e.g.
gistpad), and then check the
Add existing files to your Gists by right-clicking them in the
Explorertree, or right-clicking an editor window, and selecting
Add Document to Gist,
Add Selection to Gistor
Paste Gist File(details)
View and reply to comments in a Gist by scrolling to the bottom of a Gist file interacting with the thread
Stay up-to-date with your friend's and colleague's Gists by following them via the
GistPad: Follow Usercommand
Gist comments are exposed within the editor at the bottom of any opened Gist files. If a Gist includes multiple files, then the comment thread will be displayed at the bottom of them all (duplicated and synchronized).
If you're not authenticated, you can view existing comments, but you can't reply to them. If you are authenticated, you can add/reply, as well as edit/delete your own comments.
Contributed Commands (File Explorer)
In addition to the
Gists view, GistPad also contributes an
Add Document to Gist command to the context menu of the
Explorer file tree, which allows you to easily add local files to an existing or new Gist.
Contributed Commands (Editor)
In addition to the
Explorer file tree commands, GistPad also contributes the following commands to the editor's context menu:
Add Document to Gist- Same behavior as the equivalent command in the
Add Selection to Gist- Allows you to add a snippet/selection of code to a Gist, instead of the entire document
Paste Gist File- Allows you to paste the contents of a Gist file into the active document
Contributed Commands (Command Palette)
In addition to the
Gists view, this extension also provides the following commands:
GistPad: Follow User- Follow another GitHub user, whuich allows you to browser/access/fork their Gists from within the
GistPad: Open Gist- Displays your list of Gists (if you're signed in), and then opens the files for the selected one. You can also specify a Gist ID directly, which doesn't require being signed in.
GistPad: Open Gist as Workspace- Same behavior as the
GistPad: Open Gistcommand, but will open the selected Gist as a workspace, istead of "loose files".
GistPad: New Gist- Creates a new public Gist, and then opens its associated files. If you'd like to seed the gist with multiple files, you can specify a comma-seperated list of names (e.g.
GistPad: New Gist (Secret)- Same behavior as the
GistPad: New Gist (Public)command, except that it creates a secret Gist.
GistPad: Delete Gist- Allows you to delete one of your Gists. If you have a Gist workspace open, it will delete that and then close the folde
GistPad: Starred Gists- Lists your starred Gists, and then opens the files for the selected one.
GistPad: Fork Gist- Forks the currently opened Gist, and then opens it as a virtual workspace.
GistPad: Sign In- Sign-in with a GitHub token, in order to view/edit/delete your Gists.
GistPad: Sign Out- Sign out of the currently authenticated GitHub session.
Supported Filesystem Operations
Once you've opened a Gist, you can perform the following filesystem operations:
- Editing existing files
- Adding new files
- Renaming files
- Deleting files
- Copying/pasting files
GitHub Gist doesn't support directories, and therefore, this extension doesn't allow you to create them.