基于文件中单词的VS Code自动补全 [英] VS Code autocompletion base on word in file

查看:452
本文介绍了基于文件中单词的VS Code自动补全的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是从VS Code开始,现在我对此非常满意!

I just begin with VS Code and I'm really happy with it at the moment !

我来自Notepad ++,在我正在做的事情中,我没有在它的同一级别"上找到任何IDE.我真的很喜欢VS Code所做的事情,以及所有现代集成技术如何为我提供帮助.

I'm coming from Notepad++ and I didn't found any IDE at the same "level" of it for the things I'm doing.. Until now! I really like what VS Code is doing and how all modern integrated technology is helping me.

但是我想念NPP要做的一件事是基于文件中单词的自动完成功能.那我可以在VS Code中做同样的事情吗?

But I miss one thing that NPP do is the autocomplete base on word in the file. So can I do the same in VS Code ?

谢谢.

推荐答案

将其添加到settings.json,然后重新启动vs代码:

Add this to your settings.json, and restart vs code:

// Controls how JavaScript IntelliSense works.

// Always include all words from the current document.
"javascript.suggest.alwaysAllWords": true,

// Complete functions with their parameter signature.
"javascript.suggest.useCodeSnippetsOnMethodSuggest": true

这篇关于基于文件中单词的VS Code自动补全的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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