VS Code 中的重复导入建议 [英] Duplicate import suggestions in VS Code

查看:26
本文介绍了VS Code 中的重复导入建议的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道如何解决这个问题吗?

Does anyone know how to fix this?

推荐答案

所以实际上我发现了这个问题.如果您同时安装了 Path IntellisenseNode Module Intellisense 扩展,两者都会搜索项目中的所有模块并因此导致重复出现.解决这个问题的方法是将以下内容添加到settings.json

So actually I figured out the issue. If you have installed both Path Intellisense and Node Module Intellisense extensions, both will search for all the modules in the project and hence resulting in duplicates showing up. The way to solve this issue is to add the following to settings.json

"node-module-intellisense.scanFileModules": false

这篇关于VS Code 中的重复导入建议的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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