以下操作均在linux实现,sublime已安装package controll。
安装:ctrl+shift+p,输入install,回车,输入SublimeCodeIntel,即可完成安装。
重启sublime,编辑~/.codeintel/config,
Example:
{
"PHP": {
"php": '/usr/local/php/bin/php',
"phpExtraPaths": [],
"phpConfigFile": 'php.ini'
},
"JavaScript": {
"javascriptExtraPaths": []
},
"Perl": {
"perl": "/usr/bin/perl",
"perlExtraPaths": []
},
"Ruby": {
"ruby": "/usr/bin/ruby",
"rubyExtraPaths": []
},
"Python": {
"python": '/usr/bin/python2.7',
"pythonExtraPaths": []
}
}
再重启以下sublime吧,然后打开一个项目,sublime可能需要搜索一下项目文件,然后就可以用ctrl+f3跳到变量定义的地方了!
[
{ "keys": ["ctrl+j"], "command": "code_intel_auto_complete" },
{ "keys": ["ctrl+f3"], "command": "goto_python_definition" }
]
要查看SublimeCodeIntel的log,打开~/.codeintel/codeintel.log即可!
安装:ctrl+shift+p,输入install,回车,输入SublimeCodeIntel,即可完成安装。
重启sublime,编辑~/.codeintel/config,
Example:
{
"PHP": {
"php": '/usr/local/php/bin/php',
"phpExtraPaths": [],
"phpConfigFile": 'php.ini'
},
"JavaScript": {
"javascriptExtraPaths": []
},
"Perl": {
"perl": "/usr/bin/perl",
"perlExtraPaths": []
},
"Ruby": {
"ruby": "/usr/bin/ruby",
"rubyExtraPaths": []
},
"Python": {
"python": '/usr/bin/python2.7',
"pythonExtraPaths": []
}
}
再重启以下sublime吧,然后打开一个项目,sublime可能需要搜索一下项目文件,然后就可以用ctrl+f3跳到变量定义的地方了!
[
{ "keys": ["ctrl+j"], "command": "code_intel_auto_complete" },
{ "keys": ["ctrl+f3"], "command": "goto_python_definition" }
]
要查看SublimeCodeIntel的log,打开~/.codeintel/codeintel.log即可!