VSCode auto import, components suggestion not working in React, VSCode version 1.57.0, MacOS

Viewed 6272

I am switching to React from SwiftUI, where I am expecting auto import of components which should be default in VSCode, According to my research. Unfortunately when I type the components, VSCode is not suggesting me the components. I have to manually type the component name also manually import the components, which is very slow and require too much effort.

How can I get auto completion of components and auto import in VSCode 1.57.0?

2 Answers

I had exactly the same issue with version 1.57.

Adding "security.workspace.trust.enabled": false to settings.json resolved the issue for me.

You can use a vscode extension.
I recommend to use Reactjs code snippets extension.

Related