Skip to content

Instantly share code, notes, and snippets.

@suplo
Last active January 11, 2024 16:36
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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