在Sublime Text下获取完整的JS自动完成功能 [英] Getting full JS autocompletion under Sublime Text
问题描述
我刚刚在Windows Vista下安装了Sublime Text,甚至遵循了中给出的建议这篇文章,即明确设置查看>语法> JavaScript> JavaScript
,我只看到基于我之前输入的内容的建议。我甚至安装了 SublimeCodeIntel插件,但无济于事。
I just installed the Sublime Text under Windows Vista, and even following the advice given in this post, namely to explicitly set View > Syntax > JavaScript > JavaScript
, I only see suggestions based on what I have previously typed. I even installed the SublimeCodeIntel plug-in, to no avail.
根据我的理解,当我写pars的那一刻,我应该得到parseFloat和parseInt选项,就像Chrome开发者工具一样,对吗?
As I understand it, the moment I write "pars" I should get the "parseFloat" and "parseInt" options, as in the Chrome developer tools, right?
谢谢!
推荐答案
建议(基本上)基于当前打开文件中的文本以及任何片段或完成情况您已定义( ref )。如果你想要更多的文字建议,我建议:
Suggestions are (basically) based on the text in the current open file and any snippets or completions you have defined (ref). If you want more text suggestions, I'd recommend:
- 为常用操作添加自己的代码段。
- 为常用词添加自己的完成。
- 通过 rel =noreferrer>包裹控制。
- 你可以找到 github上的更多片段。
- 使用 Zen编码(可通过包裹控制)或 Emmet 。
- 还有各种软件包可以调整代码完成的工作方式。我喜欢 SublimeCodeIntel ,但请查看此问题的其他答案以获取更多选项。
- Adding your own snippets for commonly used operations.
- Adding your own completions for common words.
- Adding other people's snippets through Package Control.
- You can find even more snippets on github.
- Use Zen coding (available through Package Control) or Emmet.
- There are also various packages that adjust the way code completion works. I love SublimeCodeIntel, but check out other answers to this question for more options.
作为旁注,我真的建议安装Package控件以充分利用Sublime社区。上面的一些选项使用Package控件。我还强烈推荐 tutsplus Sublime教程视频,其中包括使用Sublime时提高效率的各种信息。
As a side note, I'd really recommend installing Package control to take full advantage of the Sublime community. Some of the options above use Package control. I'd also highly recommend the tutsplus Sublime tutorial videos, which include all sorts of information about improving your efficiency when using Sublime.
这篇关于在Sublime Text下获取完整的JS自动完成功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!