Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove/hide GitExtensions toolbar from Visual Studio?

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
like image 902
david.s Avatar asked Oct 30 '12 15:10

david.s


4 Answers

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.

like image 76
milgner Avatar answered Nov 10 '22 09:11

milgner


  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.

like image 41
KindDragon Avatar answered Nov 10 '22 08:11

KindDragon


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"/>
like image 2
Daniel Avatar answered Nov 10 '22 09:11

Daniel


Deleting or changing the settings files (C:\Users\UserName\Documents\Visual Studio 2012\Settings\CurrentSettings.vssettings) is only a temporary fix because Visual Studio recreates/overwrites this file each time you update a setting or close Visual Studio.

Using a team settings file doesn't work either because that file won't overwrite a parameter that's not in listed in the CurrentSettings.vssettigs file. And it won't be listed in the CurrentSettings.vssettigs file after you close Visual Studio and the file gets regenerated.

* I see 3 options *

1. Recompile GitExtensions with the modification noted here: https://github.com/gencer/gitextensions/commit/faef52e8191fde54ef9787f6f5156cf315ec9be5 This is not easy because the project includes a bunch of third party libraries that have to be installed and configured. Good Luck!

2. Use this .dll that was fixed by someone else. http://mirror.nienbo.com/git-extensions/patch_for_244/GitPlugin.dll After you download it, right click on it, select properties, and press the "unblock" button. Then copy it to C:\Users\UserName\Documents\Visual Studio 2012\Addins (overwriting the current file). This worked great for me.

3. Use a different git extension program.

like image 2
Jason Enochs Avatar answered Nov 10 '22 09:11

Jason Enochs