如何在 VsCode 2017 年 10 月禁用自动导入语句 [英] How to disable automatic import statements in VsCode October 2017
本文介绍了如何在 VsCode 2017 年 10 月禁用自动导入语句的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
几天前安装的最新版VS Code(2017年10月更新)不断在.ts代码文件顶部添加各种奇怪的import语句.
The latest version of VS Code installed a few days ago (the October 2017 update) keeps adding all kinds of strange import statements to the top of the .ts code file.
比如我在编辑一个文件的时候,VsCode突然在文件顶部添加了这样一行:
For example, as I was editing a file, VsCode suddenly added a line like this to the top of the file:
import { Stack } from "../../../../../../../../../Repos/Web/node_modules/@types/d3";
如何禁用此行为?
推荐答案
"typescript.suggest.autoImports": false
"javascript.suggest.autoImports": false
全新的 VS Code 版本.2019 年 2 月
Fresh VS Code version. February 2019
这篇关于如何在 VsCode 2017 年 10 月禁用自动导入语句的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文