博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Atom编辑器之JS代码只能补全插件-Atom-ternjs
阅读量:4287 次
发布时间:2019-05-27

本文共 719 字,大约阅读时间需要 2 分钟。

说明:

官方正式版虽然内置了.autocomplete-plus;最为明显的一个功能就是记忆你已经输入过的名称进行匹配; 
但是针对于某些语言来说,还是有些不足的….其中JS的补全上就明显不足了…所以需要借助插件来拓展

atom-ternjs

官方描述: 
script code intelligence for atom with tern.js. Uses suggestion provider by autocomplete-plus.

简言之,就是JS代码智能提示,个人也希望以后可以直接内置到atom中,而不是作为第三方插件!!

此插件依赖两个东东,git 和nodejs ; 具体可以参考我里面的其他博文

作用范围:

  1. Configure your project(针对进行配置– 英文言简意赅就不翻译了)

    • Navigate to s -> Atom Ternjs -> Configure project
    • The config view appears.
    • Hit “Save & Restart Server” to create/ the .tern-project file
  2. 全局(这个就不用解释了)

智能提示支持的语言特性:

  • browser: completion for vanilla js (optional)
  • ecma5: es5 (optional)
  • ecma6: es6 (optional)
  • jquery: completion for jQuery (optional) – 这个可以有,JQ也支持

安装方式两种:

  1. apm install atom-ternjs

  1. settings内部搜索插件名
效果图:

你可能感兴趣的文章
NAACL2021丨Knowledge Guided Metric Learning for Few-Shot Text Classification
查看>>
论文笔记|Deep Open Intent Classification with Adaptive Decision Boundary
查看>>
【论文笔记】
查看>>
论文笔记_Pay Attention to MLPs
查看>>
【论文笔记】
查看>>
论文笔记
查看>>
论文笔记 | Attention-based LSTM for Aspect-level Sentiment Classification
查看>>
【论文笔记】Joint Extraction of Entities and Relations Based on a Novel Tagging Scheme
查看>>
论文笔记|Bidirectional LSTM-CRF Models for Sequence Tagging
查看>>
论文笔记:Constructing Narrative Event Evolutionary Graph for Script Event Prediction
查看>>
论文笔记: Hierarchical Chinese Legal event extraction via Pedal Attention Mechanism
查看>>
论文笔记 | Enhancing Pre-Trained Language Representations with Rich Knowledge for MRC
查看>>
论文笔记 | Text Summarization with Pretrained Encoders
查看>>
论文笔记:Document-level Event Extraction via Heterogeneous Graph-based Interaction Model with a Tracker
查看>>
论文笔记丨Inductive Unsupervised Domain Adaptation for Few-Shot Classification via Clustering
查看>>
论文笔记|GSum: A General Framework for Guided Neural Abstractive Summarization
查看>>
论文笔记 | Does Structure Matter? Encoding Documents for Machine Reading Comprehension
查看>>
论文笔记|Self-Supervised Test-Time Learning for Reading Comprehension
查看>>
论文笔记|Open-world Learning and Application to Product Classification
查看>>
论文笔记 _ ELECTRA_ Pre-training Text Encoders as Discriminators Rather than Generators
查看>>