2

In using file filter in VSCode How to search for just a specific file type in Visual Studio code? does in fact include folder

*.py will also include folders myfolder.py : is it possible to exclude folders ?

3
  • Possible duplicate of How can I choose folders to be ignored during search? Commented Apr 24, 2019 at 6:54
  • @Corné It is similar, but not exact. below Mark 's answer is for me. Commented Jul 2 at 1:32
  • but I have more question in this case, so I ask it. see question Commented Jul 2 at 2:04

1 Answer 1

2

It isn't clear to me exactly what you are trying to do, but if you want to include *.py files but exclude folders like something.py this seems to work:

files to include: *.py

files to exclude: *.py/*

Using that you will not get search hits from folder.py/file.py

but you will from anotherFile.py that is not in the folder.py.

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.