VSCode JavaScript自动补全将“ this”变成“ globalThis”

问题描述 投票:0回答:1

VSCode自动补全最近开始在JavaScript文件中时将“ this”转换为“ globalThis”。

this turns to globalThis

这非常烦人,每次我想编写“ this.something”时,都需要按ctrl + z的方式摆脱不必要的“ globalThis.something”。我不想禁用整个JavaScript自动补全功能,我只需要为这个特定单词将其关闭即可。

有可能吗?

javascript visual-studio-code this vscode-settings
1个回答
0
投票

问题是由于我禁用了“显示关键字”选项而导致的。因此,当我键入“ this”时,this建议没有出现。

通过重新启用该选项已解决。

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.