How to open Visual Studio Code with admin privileges to make effect of the installed extensions

To run with superuser:

$ sudo code --user-data-dir=~/root

By the way you will be able to run without setting params in the upcoming patch 1.5.0.


You can press Shift+Cmd+P in visual studio code and type:

shell command

and press "install" in the PATH.

Then in your terminal go to the folder that you want to open and type "code ." It'll open the project in visual studio code as root.