Skip to content

Instantly share code, notes, and snippets.

@timheuer
Created October 17, 2023 15:27
Show Gist options
  • Save timheuer/7ff6d054cda4ea2a45c378a131d3fa7e to your computer and use it in GitHub Desktop.
Save timheuer/7ff6d054cda4ea2a45c378a131d3fa7e to your computer and use it in GitHub Desktop.
Start vs from a command shell
function vs {
$p = Get-Location
$sln = gci *.sln,*.csproj -n -recurse | select -f 1
Write-Output "Opening $p\$sln"
Start-Process -FilePath "C:\Program Files\Microsoft Visual Studio\2022\Preview\Common7\IDE\devenv.exe" -ArgumentList "$p\$sln"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment