2015年2月10日 星期二

如何使用gist與sublime

gist可以幫你管理程式片段,
sublime是好用的程式編輯器,
如今可以兩者結合使用。


  1. 請先裝好sublime的gist套件 (利用package control安裝,先把package control裝好)
sublime -> preferences -> package control -> install package

search Gist & install it

    2.  change gist setting

sublime -> preferences -> package settings -> Gist -> setting - default

set token (get token from github website: https://github.com/settings/applications)

Personal access tokens


generate new token, copy & paste it to gist setting

    3. use gist in sublime

shift + command + p -> hotkey for use package
select gist function & do something

for example, "Open Gist" will open existed gist snippet in new sublime tab, then you can copy & paste it into your current editing code tab

沒有留言:

張貼留言