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:
How can I exclude those files from source control? In Visual Studio I used .tfignore file, how about vscode?
Visual Studio Git In the Git Changes window, right-click any changed file that you want Git to ignore and choose Ignore this local item or Ignore this extension. Those menu options don't exist for tracked files.
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.
I had the same problem creating a dotnet core 2 cli react project using visual studio code and TFVC. I created a .tfignore file in the root (same place as the .gitignore).
Then I copied the content in the .gitignore file into .tfignore file, save and done...
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