instalar o comando de código no mac
Open VCode
press CMD + SHIFT + P
type 'shell command'
select 'Install code command in path'
navigate to any project from the terminal and type 'code .'
vs código Abrir pasta a partir do terminal na mesma janela
code -r .
Opções da linha de comandos de código
code -r <path-to-working-directory>
como abrir um arquivo em vscode a partir do terminal
code -r nameOfFile
abrir vs código a partir da consola
Launch VS Code.
Open the Command Palette (Cmd+Shift+P) and type 'shell command' to find the Shell Command: Install 'code' command in PATH command.
Restart the terminal
Navigate to project folder in terminal,
Type code . press enter