Skip to content

Instantly share code, notes, and snippets.

@rohgoyal
Last active September 27, 2024 12:51
Show Gist options
  • Save rohgoyal/2d0e47a48e2a8f5bf3adc835b289d495 to your computer and use it in GitHub Desktop.
Save rohgoyal/2d0e47a48e2a8f5bf3adc835b289d495 to your computer and use it in GitHub Desktop.
Manage Github Gist with VSCode

Visual Studio Code to manage Github Gist

Install Github Gist Extension

Search and install Gist (kenhowardpdx.vscode-gist) extension from Marketplace.

Setting up Github Connection

  1. From your Github profile, go to Settings and Develpoper Setttings

  2. Generate a new Personal access token

  3. Select a useful namee (e.g. GistTokenForVSCode) and select gist scope.

  4. Copy Personal token

  5. In VSCode, go to command pallete (Shift + Control + P) - search GIST: Create Profile, choose Github.com (common) and add your personal token

Reading Gist

In VSCode, go to command pallete (Shift + Control + P) - search GIST: Open Gist

Creating Gist

In VSCode, go to command pallete (Shift + Control + P) - search '''GIST: Create new Gist'''

Other Useful tips

@HarZaq2001
Copy link

how i can delete my gist profile in vscode?

@themegabyte
Copy link

@rohgoyal But this doesn't give us the GIT commit features. It just saves it directly...

@ivantorrellas
Copy link

@rohgoyal But this doesn't give us the GIT commit features. It just saves it directly...

Check the following docs to clone a gist
https://docs.github.com/en/get-started/writing-on-github/editing-and-sharing-content-with-gists/forking-and-cloning-gists#cloning-gists

@themegabyte
Copy link

Thank you @ivantorrellas. You are awesome :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment