【问题标题】:Way to remove the files/Directories from Excluded Changes in TFVC for Visual Studio Code从 TFVC for Visual Studio Code 的排除更改中删除文件/目录的方法
【发布时间】:2018-07-23 11:08:30
【问题描述】:

有没有办法从 TFVC for Visual Studio Code 的排除更改中删除文件/目录。我在 Visual Studio Code 中配置了 Team Foundation Server,加载时间过长,因为每次它都会检查文件夹 node_modulesdist 中所有文件的更改.我发现它检测到超过 4K 的文件。我必须删除这些目录。

【问题讨论】:

  • 从命令行,您可以使用tf.exe scorch 命令。话虽如此,您确实意识到您可能仍然“需要”这些文件来构建/运行您的应用程序,对吗?所以删除它们可能只是暂时的解脱。
  • 也许Richard Banks' answer可以帮助你?
  • 嗨@Christian.K。感谢您的回复。你说得对,我不想删除我只需要将它从 TFS 挂起签入列表中删除。在 Visual Studio 中,我还添加了“.tfignore”文件,它可以在 Visual Studio 中正常工作,但对于 Visual Studio Code 则无法正常工作。
  • 嗨@HaaLeo,我已经应用了添加的“.tfignore”文件并添加了我不想在Visual Studio中正常工作但不适用于Visual Studio代码扩展TFSVC的目录.

标签: tfs visual-studio-code vscode-settings


【解决方案1】:

尝试在工作区设置中添加files.exclude

  1. 转到文件 > 首选项 > 设置

  2. files.exclude 添加到settings.json

例如:

 "files.exclude": {
    "**/.git": true,
    "**/.svn": true,
    "**/.hg": true,
    "**/CVS": true,
    "**/.DS_Store": true
  },

您可以参考以下案例:

How do I hide certain files from the sidebar in Visual Studio Code?

How can I exclude a directory from Visual Studio Code "Explore" tab?

【讨论】:

    猜你喜欢
    • 2018-09-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-07-12
    • 1970-01-01
    • 1970-01-01
    • 2016-04-27
    相关资源
    最近更新 更多