Use "Code ." to open a folder in VS code
By: Daniel Jimenez | Published on: Jun 08 2021
When i switch from using my Windows machine to my Mac i alway type "code ." to open a folder... but it never works.
I will be setting up code to open with "Code ." from your terminal.
- On VS Code open the command palette by pressing:
"Command + Shift + P"
2. Type: "Shell Command".
3. Select: Shell Command: Install 'code' command in PATH"
That is basically it! Now you should be able to open folders from your terminal by typing "code ." from your terminal!