Using VSCODE from the terminal
https://stackoverflow.com/questions/29963617/how-to-call-vs-code-editor-from-command-line
https://code.visualstudio.com/docs/setup/mac
1) put in your .bashrc:
export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"
2) source your .bashrc
$ source .bashrc
3) now you can open any file that does not require SUDO ,
4) for files that require SUDO simply use the VSCODE terminal with vim