Sublime Text 2 自动完成弹出窗口无法正常工作 [英] Sublime Text 2 auto completion popup does not work properly

查看:33
本文介绍了Sublime Text 2 自动完成弹出窗口无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在整个包控制过程中安装的 jQuery Snippet 出现问题.安装后,我没有带有 jQ​​uery 代码提示和 intalisance 的弹出窗口.看这个视频:
http://code.tutsplus.com/courses/perfect-workflow-in-sublime-text-2/lessons/adding-snippets-through-package-control

在输入 后的 0:50. 他弹出了代码提示 - 我没有这个.我必须输入 . 然后按 Tab 以显示带有代码段的弹出窗口...
是的,我在 JavaScript 文件中,并且获得了默认设置.

.之后,他还得到了所有的jQuery函数,比如addaddClass.即使按 Ctrl+Space,我也没有这个.

解决方案

如果您按 CTRL-SPACE,您将获得您刚刚输入的可用完成项的下拉列表.

http://www.sublimetext.com/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:
http://code.tutsplus.com/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.

http://www.sublimetext.com/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 自动完成弹出窗口无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆