It is important to know that I made this implementation on an installation of oh-my-zsh, here the command:
$ sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
- Open terminal.
- Run "cd".
- Run "nano .zshrc".
- Paste the following code at the end of the content of the file:
code () { VSCODE_CWD="$PWD" open -n -b "com.microsoft.VSCode" --args $* ;}
- Type "control + x".
- Press "control + y".
- Restart Terminal.