简体   繁体   English

Atom'自动完成+'无法正常工作

[英]Atom 'autocomplete+' not working

So the autocomplete+ comes with Atom when you install it and is enabled by default. 因此,自动完成+在安装时随Atom一起提供,默认情况下已启用。

When I am writing code, nothing shows up, why? 当我编写代码时,没有任何显示,为什么?

Is there any file I need to configure before it works properly? 在正常工作之前是否需要配置任何文件?

In autocomplete-plus settings page there is option "File Blacklist": 在自动填充加设置页面中,有“文件黑名单”选项: 在此输入图像描述

and by default there is all files back listed "*.*" so autocomplete works only in those files which have special addon installed 默认情况下,所有文件都列回“*。*”,因此自动完成仅适用于安装了特殊插件的文件

I have put "*.none" and autocomplete started to work in all files for me 我已经把“* .none”和自动完成开始在我的所有文件中工作

For atom-typescript and any new typescript project in general, for things like autocomplete to work correctly, you must have a tsconfig.json file. 对于atom-typescript和任何新的typescript项目,一般来说, tsconfig.json自动完成工作正常,你必须有一个tsconfig.json文件。 atom-typescript has a command to generate you a file, when you're editing a .ts file. 当您编辑.ts文件时, atom-typescript有一个生成文件的命令。

在此输入图像描述

简单,只需安装atom-ternjs包。

只需安装到Atom Editor 当前插件即可

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM