In Webstorm I can easily mark folders as source root or some other stuff. But source root is the most important when ctrl clicking components in your code.
Is there a simular way of doing this in VS Code? It doesnt understand my js imports.
Create a file jsconfig.json
at the root of you project with the following content (replace src with relative source root):
{
"compilerOptions": {
"baseUrl": "./src"
}
}
For further details: https://github.com/Microsoft/vscode/issues/14907#issuecomment-306853768
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With