Sublime Text 2 自动完成弹出窗口无法正常工作

编程入门 行业动态 更新时间:2024-10-25 14:24:41
本文介绍了Sublime Text 2 自动完成弹出窗口无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我在整个包控制过程中安装的 jQuery Snippet 出现问题.安装后,我没有带有 jQ​​uery 代码提示和 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 自动完成弹出窗口无法正常工作

本文发布于:2023-11-03 14:43:20,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1555393.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:无法正常   弹出窗口   自动完成   工作   Sublime

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!