3

When I developing a Laravel, Inertia, and Svelte, CSS classes from node_modules somehow are included at my PhpStorm autocomplete. It's kinda annoying since I don't need them.

Is there any ways to exclude this files from included to autocomplete?

My Swal module CSS detected in autocomplete

2
  • 2
    One suggestion: right click on a file and choose to override its file type (make it Plain Text). This way even if the file is indexed it will not participate in code completion. Not ideal but something that works. Commented May 8, 2023 at 14:08
  • 1
    I had similar issue on Webstorm. LazyOne's method worked. Commented Nov 1, 2023 at 2:50

1 Answer 1

2

I had the same problem with public/build and public/vendor folder.

If you exclude the folders, phpstorm will not index them and will not show them in autocomplete

There are 2 ways to exclude list;

1- You can exclude the files or folders you want by following the Settings > Directories path (Here wildcard properties such as *.css are also listed)

2- You can exclude with Mark Directory as option by hovering over the folder in the project tree

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.