The command \"code .\" doesn\'t work in this manual?
All the other steps before that worked. How can I call the Visual Studio Code in OSX terminal?
Open the ~/.bashrc file using vi/vim $ vi ~/.bashrc
~/.bashrc
vi/vim
$ vi ~/.bashrc
Enter the following by pressing i to insert:
i
code () { VSCODE_CWD="$PWD" open -n -b "com.microsoft.VSCode" --args $* ;}
Save the file using :wq
:wq
Reflect the settings in ~/.bashrc using the following command:
source ~/.bashrc