mac code . not working code example
Example 1: command code not found mac
sudo ln -fs "/Applications/Visual Studio Code.app/Contents/Resources/app/bin/code" /usr/local/bin/
Example 2: code . not working mac
ps -A | grep Visual\ Studio\ Code | awk '{print $1}' | xargs kill -9
Example 3: adding code . in the terminal
code () { VSCODE_CWD="$PWD" open -n -b "com.microsoft.VSCode" --args $* ;}