在Sublime Text下获取完整的JS自动完成功能 [英] Getting full JS autocompletion under Sublime Text

查看:198
本文介绍了在Sublime Text下获取完整的JS自动完成功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚在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:

  • 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屋!

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