Skip to content

Instantly share code, notes, and snippets.

@EmilyRosina
Created November 13, 2020 20:46
Show Gist options
  • Save EmilyRosina/eef3aa0d66568754a98382121fefa154 to your computer and use it in GitHub Desktop.
Save EmilyRosina/eef3aa0d66568754a98382121fefa154 to your computer and use it in GitHub Desktop.
VSCode config to get CTRL + click and Class intellisense working everywhere
{
// This file is required for VSCode to understand webpack aliases
"module": "es6",
"moduleResolution": "node",
"compilerOptions": {
"resolveJsonModule": true,
"jsx": "preserve",
"module": "commonjs",
"target": "es5",
"sourceMap": true,
"allowSyntheticDefaultImports": true,
"baseUrl": ".",
// Relative to "baseUrl"
"paths": {
"@/*": ["./src/*"],
"mocks/*": ["./tests/unit/specs/__mocks__/*"],
"test-e2e/*": ["./tests/e2e/specs/*"],
"test-unit/*": ["./tests/unit/specs/*"]
}
},
"exclude": [
".git",
".app-cache",
".npm",
".npm-tmp",
"dist",
"dist*",
"node_modules",
"subfolder/dist",
"subfolder/node_modules",
"**/dist/*",
"**/node_modules/*"
]
}
@EmilyRosina
Copy link
Author

@codiku-dev
Copy link

Hello Emily thank for the jsconfig, It's working fin, but I don't know about you but images file name are not auto suggested

Like : "assets/images/" is correctly suggested while I type but I don't have suggestions for the image file names inside.

@nyngwang
Copy link

@codiku-dev Hi, did you solve it? I think you probably need to add those extensions into a .d.ts file for those images.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment