【问题标题】:Visual studio code intellisense set to javascript lower versionVisual Studio 代码智能感知设置为 javascript 较低版本
【发布时间】:2018-07-18 20:40:18
【问题描述】:

我正在使用 Visual Studio 代码 1.20.0

我不确定什么时候,但经过一些更新 vs code intellisense 会在每个 js 文件中提供 ES6 输出。

我正在开发 angularjs 项目,我只是不想使用 es6。

目前我正在使用智能感知获得以下代码。

for (let index = 0; index < array.length; index++) {
    const element = array[index];

}

array.forEach(element => {

});

我希望它像以前一样。如下所示

for (var index = 0; index < array.length; index++) {      
}

array.forEach(function(element) {

});

如何将 javascript 设置为较低版本。我的工作区中没有添加任何插件

谁能告诉我如何做到这一点。

【问题讨论】:

    标签: javascript angularjs visual-studio-code visual-studio-community


    【解决方案1】:

    检查此链接兄弟...
    可以使用 editor.quickSuggestions、editor.acceptSuggestionOnEnter 和 editor.suggestOnTriggerCharacters 设置全局或按每个工作区配置 VS Code 中的 IntelliSense 建议,从每个文件类型(语言)开始配置 1.9 个。

    How to disable IntelliSense in VS Code for Markdown?

    【讨论】:

    • 这并不能解决我的问题。请仔细阅读问题。我不想禁用它。我希望它给我 js 而不是 typescript(es6)。
    猜你喜欢
    • 2016-03-20
    • 2018-10-27
    • 2011-10-14
    • 2014-11-25
    • 2018-02-06
    • 1970-01-01
    • 2016-10-02
    • 2021-01-07
    • 2012-03-06
    相关资源
    最近更新 更多