Skip to content

Instantly share code, notes, and snippets.

@extofer
Last active January 4, 2016 00:49
Show Gist options
  • Save extofer/8543898 to your computer and use it in GitHub Desktop.
Save extofer/8543898 to your computer and use it in GitHub Desktop.
PowerShell script to disable (or enable, don't know why) the all Caps Menu in Visual Studio 2012 or 2013 Run powershell with a version argument and an on/off argument .\disableVScapsMenu.ps1 2012 0
# PowerShell script to disable (or enable, don't know why) the all Caps Menu in Visual Studio 2012 or 2013
# Run powershell with a version argumen and an on/off argumen
# .\disableVScapsMenu.ps1 2012 0
$onoff= $args[1]
[string]$version;
if ($args.count -lt 1)
{
$version = $( Read-Host "Input Visual Studio Version, 2012 or 2013 " )
}
else
{
$version = $args[0]
}
$value = @{$true = 0; $false = $onoff}[$args.count -lt 2]
#$value
$id = @{$true="11";$false="12"}[$version -eq "2012"]
#$id
Set-ItemProperty -Path HKCU:\Software\Microsoft\VisualStudio\$id.0\General -Name SuppressUppercaseConversion -Type DWord -Value $value
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment