Run this script via the Visual Studio Package Manager Console to add a toolbar button that will toggle the suspended state of ReSharper.
irm https://gist.github.com/jrotello/e17367ff04129dac89bb796bebb198db/raw/AddResharperToggle.ps1 | iex
Run this script via the Visual Studio Package Manager Console to add a toolbar button that will toggle the suspended state of ReSharper.
irm https://gist.github.com/jrotello/e17367ff04129dac89bb796bebb198db/raw/AddResharperToggle.ps1 | iex
$cmdbar_name = 'ReSharper (Custom)' | |
$ctrl_caption = 'Toggle ReSharper' | |
$cmdbar = $DTE.CommandBars[$cmdbar_name] | |
if (-not $cmdbar) { | |
Write-Host "Creating '$cmdbar_name' toolbar..." | |
$cmdbar = $DTE.Commands.AddCommandBar($cmdbar_name, [EnvDTE.vsCommandBarType]::vsCommandBarTypeToolbar) | |
} | |
if (-not ($cmdbar.Controls | Where-Object Caption -eq $ctrl_caption)) { | |
Write-Host "Adding '$ctrl_caption' button to '$cmdbar_name' toolbar..." | |
$ctrl = $DTE.Commands['ReSharper_ToggleSuspended'].AddControl($cmdbar) | |
$ctrl.Caption = $ctrl_caption | |
} |
Glad you found it useful. Cheers!
This is great and it's just what I needed! Works like a charm.
Thank you very much.