I would like VSCode to IntelliSense the module path so I can access it by click.
For example, after configurating jsconfig.json
I'm able to access ./src/styled/index
by importing its global path.
But I couldn't figure out how to make it work with an alias @styles
// VSCode Intellisene Worksimport { mixins, theme } from 'styles';// VSCode Intellisene Doesn't workimport { mixins, theme } from '@styles';
My current jsconfig.json
:
{"compilerOptions": {"baseUrl": "./","jsx": "react","paths": {"@styles": ["src/styles/index"] } }}