Skip to content

Instantly share code, notes, and snippets.

@yuiAs
Created January 17, 2026 02:23
Show Gist options
  • Select an option

  • Save yuiAs/9cd093c25b3fc2c75353fb9a28587115 to your computer and use it in GitHub Desktop.

Select an option

Save yuiAs/9cd093c25b3fc2c75353fb9a28587115 to your computer and use it in GitHub Desktop.
Visual Studio Developer PowerShell on VSCode
"Developer PowerShell for VS 2022": {
"source": "PowerShell",
"args": [
"-NoExit",
"-NoLogo",
"-Command",
"&{$vsInstance = Get-VSSetupInstance | Select-VSSetupInstance -Version '[17.0,18.0)';Import-Module (Join-Path $vsInstance.InstallationPath 'Common7/Tools/Microsoft.VisualStudio.DevShell.dll');Enter-VsDevShell $vsInstance.InstanceId -SkipAutomaticLocation -DevCmdArguments '-arch=x64 -host_arch=x64'}"
],
},
"Developer PowerShell for VS18": {
"source": "PowerShell",
"args": [
"-NoExit",
"-NoLogo",
"-Command",
"&{$vsInstance = Get-VSSetupInstance | Select-VSSetupInstance -Version '[18.0,19.0)';Import-Module (Join-Path $vsInstance.InstallationPath 'Common7/Tools/Microsoft.VisualStudio.DevShell.dll');Enter-VsDevShell $vsInstance.InstanceId -SkipAutomaticLocation -DevCmdArguments '-arch=x64 -host_arch=x64'}"
],
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment