Editor Configuration
Prevent Collapsing Empty Nested Folder
- Settings >
Compact Folders
> Uncheck
Select default executable shell
Useful if running Jest test inline results in error
- confirm the path of your zsh executable
which zsh
Open Command Palette
cmd + shift + p
Terminal: Select Default Shell
- See the list of available shells and select one
Configure to open VSCode from shell
Why Launch from CLI
VSCode inherits all of your env from from that CLI session
How to Configure launch from CLI
You must enable Shell Command: Install 'code' command in PATH
in command palette first
# open `pwd` in vsc code . # open specified file vscode://file//Users/local_user_name/project_name/file_name.txt:123:45
MacOS PATH to enable code
command when above does not work
export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"