文章只针对sublimecodeintel安装好之后不能正常完成补全的问题
给个安装的外链(感谢博主)
关于sublimecodeintel安装的教程
关于修改JavaScript的自动补全
Perferences->Package Settings->SublimeCodeIntel->Setting - Defalut
这里打开的是默认设置文件,我们可以看到:
"codeintel_language_settings": {
"Python3": {
"python3": "/usr/local/bin/python3.3",
"codeintel_scan_extra_dir": [
"/Applications/Sublime Text.app/Contents/MacOS",
"~/Library/Application Support/Sublime Text 3/Packages/SublimeCodeIntel/arch",
"~/Library/Application Support/Sublime Text 3/Packages/SublimeCodeIntel/libs"
],
"codeintel_scan_files_in_project": true,
"codeintel_selected_catalogs": []
},
"JavaScript": {
"codeintel_scan_extra_dir": [],
"codeintel_scan_exclude_dir":["/build/", "/min/"],
"codeintel_scan_files_in_project": false,
"codeintel_max_recursive_dir_depth": 2,
"codeintel_selected_catalogs": ["JavaScript"]
},
"PHP": {
"php": "/Applications/MAMP/bin/php/php5.5.3/bin/php",
"codeintel_scan_extra_dir": [],
"codeintel_scan_files_in_project": true,
"codeintel_max_recursive_dir_depth": 15,
"codeintel_scan_exclude_dir":["/Applications/MAMP/bin/php/php5.5.3/"]
}
}
其中关于JavaScript的片段:
"JavaScript": {
"codeintel_scan_extra_dir": [],
"codeintel_scan_exclude_dir":["/build/", "/min/"],
"codeintel_scan_files_in_project": false,
"codeintel_max_recursive_dir_depth": 2,
"codeintel_selected_catalogs": ["jQuery"]
},
“codeintel_selected_catalogs”: [“jQuery”]
这里的设置可以看到默认的是jQuery的,把这个修改成JavaScript就可以了。
“codeintel_selected_catalogs”: [“JavaScript”]
在.js文件中,如果不能自动补全可以使用 shift
+ctrl
+space
查看能否自动补全。
完成上面的配置我已经可以正常使用SublimeCodeIntel完成JavaScript的自动补全了。
更多推荐
SublimeText3中安装SublimeCodeIntel完成JavaScript自动补全
发布评论