Day 1: How to install jedi/codeintel plugin for sublime on Linux, jedicodeintel

Source: Internet
Author: User

Day 1: How to install jedi/codeintel plugin for sublime on Linux, jedicodeintel

Step 1, Install sublime3

Download sublime2/3 from http://www.sublimetext.com/

$ Tar-jxvf sublime_text_3_build_3083_x64.tar.bz2 // V3

$ Tar-jxvf Sublime \ Text \ 2.0.2 \ x64.tar.bz2 // If you install V2 sublime

$ Sudo mv sublime_text_3/usr/lib // So you needn't set PATH

$ Sudo ln-s/usr/lib/sublime_text_3/sublime_text/usr/bin/sublime

$ Sublime

 Step 2: Install package control

2.1, Ctrl + ~ And paste in sublime's command line

2.2, For V3 sublime

import urllib.request,os,hashlib; h = '2915d1851351e5ee549c20394736b442' + '8bc59f460fa1548d1514676163dafc88'; 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) 

2.3, For V2 sublime

import urllib2,os,hashlib; h = '2915d1851351e5ee549c20394736b442' + '8bc59f460fa1548d1514676163dafc88'; 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')

2.4, Restart sublime

Step 3, Install SublimeJEDI (or codeintel)

Two ways to install plugins: command line or GUI

3.1, if cmd line. do as the following:

#cd ~/.config/sublime-text-3/Packages/  

  Then # Git clone https://github.com/srusskih/SublimeJEDI.git "Jedi-Python autocompletion"

3.2, Switch to sublime GUI and Ctrl + Shift + P, input "install package", then select "jedi" to install SublimeJEDI

3.3, Similar steps for codeintel

4, Tips:

Ctrl + ~

Ctrl + Shift + p

Ctrl + B

View-Syntax-> select python

5, More details on:

Https://packagecontrol.io/

Https://github.com/srusskih/SublimeJEDI

Http://dubroy.com/blog/so-you-want-to-install-a-python-package/

Http://www.sublimetext.com/

Https://packagecontrol.io/packages/SublimeCodeIntel

Https://packagecontrol.io/installation

 

  Author: Augustone Z

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.