Skip to content

Instantly share code, notes, and snippets.

View rgribeiro's full-sized avatar

Rogerio Ribeiro rgribeiro

  • Queo Sistemas Ltd
  • Sao Paulo, Brazil
View GitHub Profile
@jrotello
jrotello / AddResharperToggle.ps1
Last active September 3, 2024 06:34
Script to add a toolbar and button for toggling the suspended state of ReSharper.
$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)) {