0

I'm trying to configure VS Code to exclude all files without an extension (eg Linux executables) from the file explorer.

I know about using files.exclude, but I can't find a pattern that correctly matches files without a dot (.) in their name.


What I tried:

  • **/[^.]*" and **/?*[^.]* excluded all files.

  • **/!(*.*) didn't work.

6
  • 1
    You best add files.exclude to your question with some of the patterns you've tried. Commented Feb 19, 2025 at 12:09
  • As requested, show your attempts - otherwise you're likely to get down voted. Commented Feb 20, 2025 at 10:40
  • @Joy are you purposefully ignoring requests to post what you've tried (regardless of originator)?, just post what you've tried , simple Commented Feb 22, 2025 at 16:11
  • duplicate of stackoverflow.com/q/60393786/11107541 Commented Feb 23, 2025 at 10:21
  • @GoodNightNerdPride no, they do not Commented Feb 23, 2025 at 10:22

1 Answer 1

0

As of now, VSCode supports a simplified glob pattern, wherein the ^[...] syntax can only be used to negatively match a range of characters.

See the documentation here: https://code.visualstudio.com/docs/editor/glob-patterns.

VSCode's glob matcher code clearly shows that it only supports a simplified kind of glob matching. See the match function.

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

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.