I have been using Webstorm for react development for a long time. Now I decided to give VSCode a try.
I am struggeling with an issue where VSCode does not suggest props for modules, for example material-ui.
Take a look at this screenshot:
In this case it should suggest sx
and component
props according to the docs https://mui.com/components/box/, but it only happens when I start typing specific prop name. Otherwise it is not even in the list.
This is my tsconfig.json
"compilerOptions": {
"target": "es6",
"lib": ["dom", "dom.iterable", "esnext"],
"alwaysStrict": true,
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"noUnusedLocals": true,
"noUnusedParameters": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"allowSyntheticDefaultImports": true,
"sourceMap": true,
"baseUrl": "./src",
"paths": {
"components/*": ["components/*"],
"pages/*": ["pages/*"],
"styles/*": ["styles/*"],
"themes/*": ["themes/*"],
"types/*": ["types/*"],
"utils/*": ["utils/*"],
}
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
"exclude": ["node_modules"]
}
Now this is a typescript project, I don't want to use propTypes nor jsDoc. This worked in webstorm for sure, is there a way to make it work in VSCode as well?