简体   繁体   English

VS 2013-如何在解决方案资源管理器中跟踪文件更改?

[英]VS 2013 - how to track file changes in solution explorer?

I'm using git from the command line (cygwin). 我从命令行(cygwin)使用git。 When I checkout older commits or change branches, the solution explorer doesn't update to match the new files that have been created/deleted. 当我检出较早的提交或更改分支时,解决方案资源管理器不会更新以匹配已创建/删除的新文件。 How can I make visual studio refresh to reflect the file changes? 如何使Visual Studio刷新以反映文件更改?

I have the settings "Detect when file is changed outside the environment" and "Auto-load changes, if saved" enabled, but they don't seem to help. 我启用了“在环境外部更改文件时检测”和“自动加载更改,如果已保存”设置,但它们似乎无济于事。 The button "show all files" will show files that were introduced but doesn't remove files that are now gone. “显示所有文件”按钮将显示已引入的文件,但不会删除现在不存在的文件。

As I noted in my comment there is an open defect against the behavior you would like to achieve. 正如我在评论中指出的那样,您想要实现的行为存在一个明显的缺陷。

https://connect.microsoft.com/VisualStudio/feedback/details/773039/detect-file-changes-outside-environment-not-working https://connect.microsoft.com/VisualStudio/feedback/details/773039/detect-file-changes-outside-environment-not-working

Update : First option: 更新 :第一个选项:

In the meantime , try to install a vs2013 extension to handle it. 同时,尝试安装vs2013扩展来处理它。

I recommend 2 extension that may help you: 我建议2扩展名可以帮助您:

  1. Git Source Control Provider Git源代码控制提供者
  2. Workspace Reloader 工作区重新加载器

I hope it will address your need. 我希望它能满足您的需求。

Update : the second option is to use vs2013 integrated git tools 更新 :第二个选择是使用vs2013集成的git工具

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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