Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

192
Views
How to remove files from auto-import/intellisense in VSCode

I don't ever want to import anything from storybook files, but they constantly pollute my intelli-sense.

Here is my jsconfig.json:

{
  "compilerOptions": {
    "experimentalDecorators": true,
    "allowSyntheticDefaultImports": true,
    "module": "commonjs",
    "target": "es6",
    "jsx": "react",
    "baseUrl": "src",
    "paths": {
      "*": ["*", "src/*"]
    }
  },
  "include": ["src/**/*.js"],
  "exclude": ["dist", "node_modules", "**/node_modules/*", "src/**/*.stories", "src/**/*.stories.*"]
}

enter image description here

I have tried adding "src/**/*.stories" to the "exclude" option in jsconfig.json.

I've also tried various alternatives. One annoying thing is that this appeared to work with my Button example, but then I tried Spinner and files still aren't being filtered?

Is it anything to do with the fact that I'm including them before excluding?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!