问题
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