[VS Code] Make the code command available in fish on macOS

Created on November 30, 2026

If Visual Studio Code is installed in /Applications, add its CLI directory to fish's PATH. Then code is available in the current shell.

set -x PATH "/Applications/Visual Studio Code.app/Contents/Resources/app/bin" $PATH

Put the line in ~/.config/fish/config.fish to apply it when a new fish shell starts. Adjust the path if you installed VS Code elsewhere.

VS Code