xxxxxxxxxx
Launch VS Code.
Install the Shell Extension by Baptist Benoist
Open the Command Palette (Cmd+Shift+P) and type 'shell command' and press Enter.
You will enter into Shell Command mode
Type Install 'code' command in PATH command and press enter
Restart the terminal
xxxxxxxxxx
# Use the following command in terminal or command prompt
code <path_to_folder_or_file>
# Note: Replace <path_to_folder> with . to open code in current directory
# Example:
code C:\repos\hello-world
code .
# Refer the source for additional options with the code command