Horje
open vscode from terminal Code Example
open vscode in terminal sudo
sudo code --user-data-dir="~/.vscode-root"
open visual studio code from terminal mac
#Add Bash alias in .bash_profile ?
$ alias code="open -a /Applications/Visual\ Studio\ Code.app"

#Open Visual Studio Code by command
$ code .
install code command on 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 .'
install code . path in mac
cat << EOF >> ~/.zshrc
# Add Visual Studio Code (code)
export PATH="/Applications/Visual Studio Code.app/Contents/Resources/app/bin:$PATH"
EOF
launch bash script from application mac without opening terminal
#!/bin/bash
open vscode from 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




Shell

Related
how to clear/delete/remove/erase/wipe/forget shell traps Code Example how to clear/delete/remove/erase/wipe/forget shell traps Code Example
cmd to remove temporary files in win 10 Code Example cmd to remove temporary files in win 10 Code Example
linux du suppress errors Code Example linux du suppress errors Code Example
how to use find and -regex flag together Code Example how to use find and -regex flag together Code Example
bash print file permissions Code Example bash print file permissions Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7