All posts

Opening VScode in new window on Mac + shortcut

 vscode

Once you’ve installed VScode you will have access to the following command to open a new window:

code -n .

In order to create an alias for this command open your .bashrc or .zshrc or equivalent and create the alias:

alias code="code -n ."

After restarting your terminal you could now be able to execute code to open a new window.

Postscript:

I built two products to help fund continued efforts for this website, it would mean a lot if you would check them out:
1. 2500+ Words for the Undermotivated Software Engineer - A short essay I wrote on the titled topic ($3).
2. Build 3 Chrome Extensions in Under 2 Hours - A course I built to teach chrome extension development ($9-20).