我在整个包控制过程中安装的 jQuery Snippet 出现问题.安装后,我没有带有 jQuery 代码提示和 intalisance 的弹出窗口.看这个视频:code.tutsplus/courses/perfect-workflow-in-sublime-text-2/lessons/adding-snippets-through-package-control
在输入 后的 0:50. 他弹出了代码提示 - 我没有这个.我必须输入 . 然后按 Tab 以显示带有代码段的弹出窗口...是的,我在 JavaScript 文件中,并且获得了默认设置.
在.之后,他还得到了所有的jQuery函数,比如add或addClass.即使按 Ctrl+Space,我也没有这个.
解决方案如果您按 CTRL-SPACE,您将获得您刚刚输入的可用完成项的下拉列表.
www.sublimetext/docs/2/tab_completion.html>
如果您希望在键入时显示自动完成下拉列表,请将此行添加到您的 User Preferences.sublime-settings 文件中:
{"auto_complete_selector": "来源,文本"}这应该可以满足您的要求:-)
I got problem with jQuery Snippet that i installed throughout package control. After installation I do not have popup with jQuery code hints and intalisance. Look at this video: code.tutsplus/courses/perfect-workflow-in-sublime-text-2/lessons/adding-snippets-through-package-control
On 0:50 after typing . he got popup with code hints - I don't have this one. I have to type . on and then press Tab to display popup with snippet... And yes, I'm in JavaScript file and I got default settings.
And after . he also got all jQuery functions like add or addClass. I do not have this one even if I press Ctrl+Space.
解决方案If you hit CTRL-SPACE you'll get the dropdown of available completions for what you've just typed.
www.sublimetext/docs/2/tab_completion.html
If you want the autocomplete dropdown to appear as you type then add this line to your User Preferences.sublime-settings file:
{ "auto_complete_selector": "source, text" }That should do what you're looking for :-)
更多推荐
Sublime Text 2 自动完成弹出窗口无法正常工作
发布评论