Duplicate import suggestions in VS Code

安稳与你 提交于 2021-01-28 22:59:51

问题


Recently I am being shown duplicate suggestions like this


Does anyone know how to fix this?


回答1:


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


来源:https://stackoverflow.com/questions/63095724/duplicate-import-suggestions-in-vs-code

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!