Gist for VS Code
Getting Started
Set Token
- Generate PAT at https://github.com/settings/tokens and select
gist scope.
- Use
Gist: Set Token command or add it in the settings.json .
Commands
- Gist: Set Token
- Gist: List Gists
- Gist: List Starred Gists
- Gist: List Gists For User
- Gist: List Public Gists
- Gist: Delete Gists
Explorer/Context
- List Gists
- Generate Files By Gist
Create Gist By Select
Create Gist By File
Editor
Explorer/Context
Generate Files By Gist
Use this command, you need config gist-vscode.generate in the settings.json or use Add To Generate List command after list gists.
Settings
gist-vscode.token
Set token for extension.
gist-vscode.per_page
Gists per request. Default is 30 , max is 100
gist-vscode.showTitleIcon
Show icon on the editor title. Default is false
gist-vscode.generate
// settings.json
{
"gist-vscode.generate": [
{
"label": ".prettierrc",
"description": "prettier config file", // optional
"url": "https://gist.github.com/whosydd/3d7554d6818b0f9c9a2ec8e928857211"
},
//...
]
}
Thanks
Github icons created by Pixel perfect - Flaticon
| |