简体   繁体   中英

How to exclude folders when using TFS in vscode?

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?

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...

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 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM