Hide file from import suggestions

Is there a way to hide some files from import suggestions? I'm coding using reactjs and I tend to group every file of one component together adding a package.json in it to indicate which is the default export. I was kinda hoping that defining a default export from the folder would prevent suggesting all the other files in it but it still does

1 comment
Comment actions Permalink

Not sure I understand what your structure looks like... You can add paths you don't want importing from to Do not import exactly from list in Settings | Editor | Code Style | JavaScript | Imports, see https://www.jetbrains.com/help/webstorm/2021.3/settings-code-style-javascript.html#ws_js_settings_editor_code_style_imports_tab

0

Please sign in to leave a comment.