1、首先在package-control中安装SublimeCodeIntel
2、点击preferences中的browse Packages,进入到SublimeCodeIntel,在当前的路径下新建.codeintel文件夹(windows中文件命名的时候为 .codeintel. ),之后进入到 .codeintel文件夹中,新建文件config,配置文件中输入:
"python3":{
"python":"E:/Program Files/python34/python.exe",
"pythonExtraPaths":[
"E:/Program Files/python34/DLLs",
"E:/Program Files/python34/Lib",
"E:/Program Files/python34/Lib/lib-tk",
"E:/Program Files/python34/Lib/site-packages",
]
}
3.如果是其他语言,就写相应的配置,例如:
{
"PHP": {
"php": '/usr/bin/php',
"phpExtraPaths": [],
"phpConfigFile": 'php.ini'
},
"JavaScript": {
"javascriptExtraPaths": []
},
"Perl": {
"perl": "/usr/bin/perl",
"perlExtraPaths": []
},
"Ruby": {
"ruby": "/usr/bin/ruby",
"rubyExtraPaths": []
}
}