How to exclude folders when using TFS in vscode?

Viewed 2758

I am using Visual Studio Team Services extension in VS code for check in. https://marketplace.visualstudio.com/items?itemName=ms-vsts.team

I am now trying to check in change in angular project, but I am annoyed by excluded 16000 files which are from node_modules: enter image description here

How can I exclude those files from source control? In Visual Studio I used .tfignore file, how about vscode?

2 Answers

So I followed everything that the others mentioned, but was missing the following, for .tfignore to skip the files:

Place the following in you Visual Studio Code's settings.json file.

"tfvc.restrictWorkspace": true

settings.json location:

File - Preferences - Settings (top right-hand corner(Open Settings (JSON)))

That I found the answer here.

Related