I'm using a workspace with 2 different folders that are part of the same reposiory. The .gitignore file for the directories is sitting in the above directory and not inside the folders.
The folder structure:
ParentDir
.gitIgnore
folder 1
folder 2
Because of that VS Code doesn't exclude the files affected from .gitignore
Your help would be apprecited.
This was a limitation in VS Code, which has been resolved now that pull request #140022 is merged. Currently you can achieve what you want by enabling the setting Search: Use Parent Ignore Files.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With