Run Visual Studio Code as root on Linux
Run `code` as root on Linux
Ever wanted to open a file as root on Linux with Visual Studio Code? Here’s the command to do so:
$ xhost +local: && sudo code --no-sandbox --user-data-dir=/root/.config/code /Ever wanted to open a file as root on Linux with Visual Studio Code? Here’s the command to do so:
$ xhost +local: && sudo code --no-sandbox --user-data-dir=/root/.config/code /No posts