How to remove/hide GitExtensions toolbar from Visu

2020-05-24 20:15发布

I tried:

  • right-click on a toolbar and uncheck GitExtensions
  • right-click on a toolbar > Customize and delete GitExtensions
  • moved the toolbar from the second row to the first row
  • searched GitExtensions settings for a way to disable/hide the toolbar, but didn't find anything

The GitExtensions toolbar shows up again on the second toolbar row after a computer restart.

I use:

  • Windows 8
  • Visual Studio 2012
  • Git 1.7.11
  • GitExtensions 2.41

7条回答
Bombasti
2楼-- · 2020-05-24 20:51
  1. Run Git Extensions uninstaller from Control Panel
  2. Click to 'Change' button
  3. Deselect "Visual Studio extension" feature

UPDATE

This should work with 2.48.04 and newer versions: right-click on a toolbar, uncheck GitExtensions, close all VS instances and start it again.

查看更多
SAY GOODBYE
3楼-- · 2020-05-24 20:53

The location is correct, the file is called CurrentSettings.vssettings

I modified the line:

<add_toolbar Menu="{000D7B18-CDE4-49F0-B194-FE3E25BBF096}:00000002" 
 Name="GitExtensions" MenuType="toolbar" />

by adding Visibility="hide" FullScreen="hide"

Result:

<add_toolbar Menu="{000D7B18-CDE4-49F0-B194-FE3E25BBF096}:00000002" 
 Name="GitExtensions" MenuType="toolbar"
 Visibility="hide" FullScreen="hide"/>
查看更多
Deceive 欺骗
4楼-- · 2020-05-24 20:53

Resetting all settings worked for me. Though, after that I had to set everything up from scratch.

If that's not a problem then go to visual studio TOOLS > Import and Export Settings...> Reset all Settings.

I think it takes effect after restarting visual studio.

查看更多
看我几分像从前
5楼-- · 2020-05-24 20:54

The settings for the Visual Studio Git Extensions toolbar can be found in this file:

\Users{username}\Documents\Visual Studio 2012\Settings\CurrentSettings.vssettings

Search the file for the term GitExtensions to find the toolbar setting lines. There will likely be two lines, not necessarily next to each other:

<add_toolbar Menu="{000D7B18-CDE4-49F0-B194-FE3E25BBF096}:00000002" Name="GitExtensions" MenuType="toolbar"/>

<modify_toolbar Menu="{000D7B18-CDE4-49F0-B194-FE3E25BBF096}:00000002" Name="GitExtensions" Visibility="show" FullScreen="hide" Dock="top" Row="2" FloatRectangle="0,0,208,24" DockRectangle="0,0,208,24"/>

You'll want to modify the second of the two lines, since it will take precedence, and it already has the settings in it.

You can set the Visibility to "auto" to make it behave like other toolbars, or "hide" to just get rid of it. Set the Row to 1 if you want it to stick to the first row of toolbars.

Of course you'll have to do this with VS closed in order for it to work properly.

查看更多
forever°为你锁心
6楼-- · 2020-05-24 21:02

Please make sure you remove .git hidden folder from your solution folder. or any other .git file

查看更多
何必那么认真
7楼-- · 2020-05-24 21:06

The Git Extension files are stored in your 'My Documents' folder in a "Visual Studio 2012" subfolder. Removing these files will make the toolbar disappear from within MSVC.

查看更多
登录 后发表回答