博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Day 1: How to install jedi/codeintel plugin for sublime on Linux
阅读量:6092 次
发布时间:2019-06-20

本文共 2625 字,大约阅读时间需要 8 分钟。

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

转载于:https://www.cnblogs.com/augustone/p/LinuxPythonSublime.html

你可能感兴趣的文章
推荐一个内容滚动jquery插件
查看>>
淘宝的几个架构图
查看>>
Warning: Divide by zero.
查看>>
[Android Studio] Android Studio移除的Module如何恢复(转载)
查看>>
蝶若双生,花便盛开
查看>>
Android扩展 - 拍照篇(Camera)
查看>>
JAVA数组的定义及用法
查看>>
充分利用HTML标签元素 – 简单的xtyle前端框架
查看>>
设计模式(十一):FACADE外观模式 -- 结构型模式
查看>>
iOS xcodebuile 自动编译打包ipa
查看>>
程序员眼中的 SQL Server-执行计划教会我如何创建索引?
查看>>
【BZOJ】1624: [Usaco2008 Open] Clear And Present Danger 寻宝之路(floyd)
查看>>
cmake总结
查看>>
搜索引擎-倒排索引基础知识
查看>>
baby用品
查看>>
Jquery解析Json格式数据
查看>>
数据加密插件
查看>>
一款很不错的html转xml工具-Html Agility Pack
查看>>
linux安装中文输入法
查看>>
怎样用Java编写一段代码引发内存泄露
查看>>