visual-studio - In Visual Studio 2017 is there a way to enable the Source Control dialog from a Tab?
问题描述
When working in Visual Studio 2017, it would be handy to have access to the Source Control dialog to "Undo Checkout" when you right click on the tab for an open document. We frequently work with complex solutions where files we work on concurrently reside in many different folders. Finding and opening the folder for an opened file is annoying when the task I need to perform is an "Undo Checkout".
Reviewing these preferences, I don't see anything that would enable this type of feature from opened tabs.
Tools > Options > Environment > Tabs and Windows
Tools > Options > Source Control
Is what I'm requesting an available feature, and if so how can I enable it? Thanks.
解决方案
如果没有插件扩展,我不知道有任何方法可以更改 VS2017 中的选项卡。
但是,您可以右键单击编辑器窗口(显示代码的位置),在显示的上下文菜单中是一个源代码控制子菜单,如果更改未决,它将提供“撤消”选项。
此外,您可以将“团队资源管理器”窗口添加到侧边栏之一或作为现有弹出窗口中的选项卡。我喜欢将属性、解决方案资源管理器和团队资源管理器标签在一起并显示在编辑器工作区的一侧。
推荐阅读
- c# - 如何仅将对话列表放在它自己的滚动视图中?
- python - 在 python 中,我想要数千个单独的十进制数字并以 2 个十进制数字显示
- sylius - 如何在 Sylius 中自定义 Stripe 模板?
- azure - Azure 中的人脸检测
- java - MVC:下拉菜单中的值未设置为选定值 - 保持为 0
- javascript - JavaScript 类是否有与 Python 类的 __call__ 等效的方法?
- javascript - 在带有空格的对象内搜索字符串名称
- html - 使用带有标签的 react-router 链接
- sql - 按顺序更新列值,其中新值基于“上一个”行中的更新值
- javascript - 我有一个不安全的 API (HTTP) 正在尝试访问,Chrome 会阻止数据。有什么办法可以解决这个问题?