Kudos
Collect
Twiiter
Facebook
Share
개발의 'ㄱ'자라도 아는 날을 기대하며...

How to install package control on Sublimetext

마지막 업데이트 3년 전
0 0 0 0

There are tons of packages (so-called plugin, third party) which you can do many things from chicking grammar for your codes and compiling LESS to CSS etc. This kind of packages is the reason why many people use Sublime.

Here’s the instruction for installing package control that you can easily search, install and manage these packages.

Installing package control

Installation is easy!

  1. Open console window by clicking View>Show Console at the menu.

  2. Copy and paste the following codes in your opened console

    • For Sublime Text 3

      import urllib.request,os,hashlib; h = '6f4c264a24d933ce70df5dedcf1dcaee' + 'ebe013ee18cced0ef93d5f746d80ef60'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( 'http://packagecontrol.io/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); print('Error validating download (got %s instead of %s), please try manual install' % (dh, h)) if dh != h else open(os.path.join( ipp, pf), 'wb' ).write(by)
      
    • For Sublime Text 2

      import urllib2,os,hashlib; h = '6f4c264a24d933ce70df5dedcf1dcaee' + 'ebe013ee18cced0ef93d5f746d80ef60'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); os.makedirs( ipp ) if not os.path.exists(ipp) else None; urllib2.install_opener( urllib2.build_opener( urllib2.ProxyHandler()) ); by = urllib2.urlopen( 'http://packagecontrol.io/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); open( os.path.join( ipp, pf), 'wb' ).write(by) if dh == h else None; print('Error validating download (got %s instead of %s), please try manual install' % (dh, h) if dh != h else 'Please restart Sublime Text to finish installation')
      
  3. When you enter, Package Control.sublime-package will be downloaded and saved in Installed Packages

How to use package control

Installing the package

You can find out various Sublime packages through the following link Package Control Website

  1. Input Cmd+shift+P(Mac) OR Ctrl+shift+P(Windows) to start command palette.

  2. In command palette, inputpackage control and click Package Control: Install Package

click Package Control: Install Package in command palette
click Package Control: Install Package in command palette
  1. You can download any package you want by searching and clicking a package.

How to find my list of downloaded packages

  1. Input Cmd + shift + P(Mac) OR Ctrl + shift + P(Windows) to start command palette.

  2. Input list in command palette and and click Package Control: List Package

Click “Package Control: List Package”
Click “Package Control: List Package”
  1. You can now see the list of downloaded packages

Deleting package

  1. Input Cmd + shift + P(Mac) OR Ctrl + shift + P(Windows) to start command palette.

  2. In command palette, input remove and click Package Control: Remove Package.

Click Package Control: Remove Package
Click Package Control: Remove Package
  1. Click any package you want to delete.

Reference

안녕하세요?^^ 개발자라는 소리를 듣고 싶어 늦은 나이에 개발의 세계에 몸담게 된 Brad 라고 합니다. 아직 개발의 'ㄱ' 자도 모르지만, 개발을 배우면서 알게되는 것들을 림프에 정리해보려고 합니다. 저의 부족한 글이 누군가에게 조금이나마 도움이 되길 바랍니다.

관련글
Essedrop - 이미지 주소를 만드는 가장 빠른 방법
 

독자 의견

저자 @brad 에게 의견 남기기:

Please sign in to comment.
Markdown is also available in comment.