Skip to content

Instantly share code, notes, and snippets.

@suplo
Last active May 23, 2024 22:48
Show Gist options
  • Save suplo/5295f24328a4038255508bfdadfab2f0 to your computer and use it in GitHub Desktop.
Save suplo/5295f24328a4038255508bfdadfab2f0 to your computer and use it in GitHub Desktop.
Quick hack to open vscode from fish shell

The code extension does not allow me to open folder with vscode from command line.
Solution: Add the following function to ~/.config/fish/config.fish

function vcode
  open -a "Visual Studio Code.app" $argv
end

then using vcode $folder to open $folder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment