首先安装Package Control
ctrl+~打开控制台,输入一下内容,回车进行安装
安装完成后需要重启Sublime
快捷快ctrl+shifit+p打开Package Control
输入Package Control:Install Package 打开Install Package面板
输入jedi 找到jedi选择回车安装
参数配置:
点击打开:Preferences->Setting-User
添加配置项
"auto_complete_triggers": [{"selector": "source.python", "characters": "."}],
"auto_complete_selector": "-",
"sublime_completions_visibility": "jedi"
参考:
https://packagecontrol.io/installation#st2
https://packagecontrol.io/packages/Jedi%20-%20Python%20autocompletion
ctrl+~打开控制台,输入一下内容,回车进行安装
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)
安装完成后需要重启Sublime
快捷快ctrl+shifit+p打开Package Control
输入Package Control:Install Package 打开Install Package面板
输入jedi 找到jedi选择回车安装
参数配置:
点击打开:Preferences->Setting-User
添加配置项
"auto_complete_triggers": [{"selector": "source.python", "characters": "."}],
"auto_complete_selector": "-",
"sublime_completions_visibility": "jedi"
参考:
https://packagecontrol.io/installation#st2
https://packagecontrol.io/packages/Jedi%20-%20Python%20autocompletion