“Abra o Vscode do terminal” Respostas de código

Abra o Vscode no Terminal Sudo

sudo code --user-data-dir="~/.vscode-root"
Wandering Whale

Código do Visual Studio aberto do Terminal Mac

#Add Bash alias in .bash_profile ?
$ alias code="open -a /Applications/Visual\ Studio\ Code.app"

#Open Visual Studio Code by command
$ code .
Snippets

Instale o código. caminho no Mac

cat << EOF >> ~/.zshrc
# Add Visual Studio Code (code)
export PATH="/Applications/Visual Studio Code.app/Contents/Resources/app/bin:$PATH"
EOF
Anxious Anteater

Instale o comando 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 .'
Volcano

Inicie o script Bash do aplicativo Mac sem o terminal de abertura

#!/bin/bash
Selfish Stork

Abra o Vscode do terminal

# TLDR; copy the following text into your .bashrc then open vscode in any dir
# GIVEN you are using bash in Windows 10
# AND vscode is installed in %LOCALAPPDATA%\Programs\Microsoft VS Code\
# AND there is a subfolder named "bin" that includes a file called code.cmd
# AND you know where to locate and edit your .bashrc
# THEN add the following command to your .bashrc

export PATH=$PATH:%LOCALAPPDATA%\Programs\Microsoft VS Code\bin\

# THEN save and close your .bashrc and exit that terminal session
# THEN open a new session from any windows folder with files you want to edit
# with vscode or navigate to that folder with bash
# THEN run "code ." and it will open the folder in the navigation pane in vscode
lundeen-bryan

Respostas semelhantes a “Abra o Vscode do terminal”

Perguntas semelhantes a “Abra o Vscode do terminal”

Mais respostas relacionadas para “Abra o Vscode do terminal” em Shell/Bash

Procure respostas de código populares por idioma

Procurar outros idiomas de código