Visual Studio 2010 在 git pull 后关闭打开的文件

发布于 2024-10-28 18:59:47 字数 112 浏览 3 评论 0原文

我们使用 VS 2010 和 GIT。有时,在 git pull 后,所有打开的文件都会关闭——似乎在将新文件添加到项目中时会发生这种情况。我似乎找不到不应该在版本控制中的相关文件。还有其他人遇到过这个问题吗?

We're using VS 2010 and GIT. Occasionally, after a git pull, all open files will close--seems like this happens when new files are added to the project. I can't seem to find a related file that shouldn't be in version control. Has anyone else had this issue?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

往昔成烟 2024-11-04 18:59:47

我想出了一个解决方案。这有点烦人,但它可以解决在 VS 中重新打开所有选项卡/文件的繁琐任务。

当您收到 VS 警告,指出项目已在 VS 外部修改时,它会询问您是否要重新加载项目。选择“忽略”。

接下来,保存所有工作,关闭 VS 并重新打开您的解决方案或项目。您之前打开的所有文件/选项卡都将再次打开,显然,项目文件的更新也将被加载。

另一个需要注意的是,您将失去打开文件中所有“撤消”潜力。

I figured out a solution to this. It's a little annoying but it works around the tedious task of re-opening all of your tabs/files in VS.

When you get the VS warning that the Project has been modified outside of VS it asks if you want to reload the project. Choose "Ignore."

Next, save all your work, close VS and reopen your solution or project. All the files/tabs you had open previously will be open again and the updates to the project file, obviously, will also be loaded.

Another caveat to this is you lose all your "Undo" potential in your open files.

别理我 2024-11-04 18:59:47

.vcproj 文件被触及(不一定会更改)时,其所有打开的文件都会被关闭,并且永远不会重新打开。这可能就是你正在经历的事情吗?

When a .vcproj file gets touched (not necessarily changed), all its opened files are closed and never reopened. Might this be what you are experiencing?

下雨或天晴 2024-11-04 18:59:47

查看
WorkspaceReloder
它是一个视觉工作室插件,可以让您的文件在重新加载时保持打开状态。它非常有用,可以让您不必经历那些荒谬的步骤。生产力++。

Check out
WorkspaceReloder.
It's a visual studio add in that will keep your files open upon reloading. It's tremendously useful and will keep you from having to go through those ridiculous steps. Productivity++.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文