Skip to content

Instantly share code, notes, and snippets.

@say-kaj
Last active November 6, 2019 13:54
Show Gist options
  • Save say-kaj/bbad405da9bc7e0b25026db03f214555 to your computer and use it in GitHub Desktop.
Save say-kaj/bbad405da9bc7e0b25026db03f214555 to your computer and use it in GitHub Desktop.
[How to Use Gist in Sublime] #mac

Generate Access Token

The access Token can be created on the github site under Account Settings -> Developer Settings -> Personal Access token In Sublime go to Preferences / Package Settings / Gist / Settings-User and put in your token and GitHub UID as per below example

{
  "token": "n",  
  "include_users": ["GitHub_UID"]  
}

Keyboard ShoardCuts can be looked up in preferences. Defalt for mac is:

Function Keyboard Shortcut on Mac
Create Public Gist ⌘+K ⌘+I
Create Private Gist ⌘+K ⌘+P
Update File ⌘+K ⌘+S
Open File ⌘+K ⌘+O
Insert File ⌘+K ⌘+[
Add File ⌘+K ⌘+]

--> Git for noobs

Sublime Stuff

The Alignment plugin helps to easily align multiple selections, or multi-line selections. What that means is you can align multiple selections, or lines, via delimiter such as =. Simply type ctrl + alt + a on Windows, or cmd + ctrl + a on a Mac, to align your selection. To align with :follow this tutorial to setup custom delimiters.

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