简体   繁体   English

VSCode JavaScript 自动完成将“this”变成“globalThis”

[英]VSCode JavaScript autocompletion turns "this" into "globalThis"

VSCode autocompletion recently started to turn "this" into "globalThis" while in a JavaScript file. VSCode 自动完成功能最近开始在 JavaScript 文件中将“this”转换为“globalThis”。

这变成了 globalThis

This is very annoying, each time I want to write "this.something" I need to ctrl+z my way out of an unwanted "globalThis.something".这很烦人,每次我想写“this.something”时,我都需要 ctrl+z 摆脱不需要的“globalThis.something”。
I don't want to disable the whole JavaScript autocompletion though, I just need to turn it off for this particular word.不过,我不想禁用整个 JavaScript 自动完成功能,我只需要为这个特定单词关闭它。

Is it possible ?是否可以 ?

The problem was caused by the fact that I had disabled the "Show Keywords" option.问题是由于我禁用了“显示关键字”选项造成的。 Thus, the this suggestion didn't came up when I typed "this".因此,当我输入“this”时,没有出现this建议。

Solved it by re-enabling the option.通过重新启用该选项解决了它。

在此处输入图片说明

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

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