Skip to content

Instantly share code, notes, and snippets.

@xinmyname
Created October 7, 2019 15:52
Show Gist options
  • Save xinmyname/17d7952c165897a3a81991a8fde389fd to your computer and use it in GitHub Desktop.
Save xinmyname/17d7952c165897a3a81991a8fde389fd to your computer and use it in GitHub Desktop.
Launch Code
# Launches code correctly, without cmd.exe so it works with UNC paths
function LaunchCode {
PowerShell -Command "& 'C:\Users\sherwooda\AppData\Local\Programs\Microsoft VS Code\Code.exe' $args"
}
New-Alias e LaunchCode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment