首页 > 解决方案 > How to remove this annoying Push Changes button in vscode?

问题描述

It wasn't there before, for something reason it appeared in my vscode recently, maybe after an update.

So anyone knows how to remove these buttons?

Thanks

enter image description here

标签: visual-studio-code

解决方案


1.61 的 Visual Studio 代码更改日志已涵盖:
https ://code.visualstudio.com/updates/v1_61#_publish-or-sync-action-button-for-git-repositories

引用最后一节:

git.showUnpublishedCommitsButton用户可以通过配置设置来自定义此行为,
...
最后,用户可以通过新设置完全禁用源代码管理视图中任何操作按钮的可见性,该scm.showActionButton设置会覆盖任何源代码管理扩展程序的行为。

例如,查看“设置 > 功能 > SCM > 显示操作按钮”showActionButton在“搜索设置”字段中搜索。

我不知道为什么按钮没有显示给我,所以我无法确认它是正确的设置 - 但这应该是您正在寻找的。


推荐阅读