I have a problem with my virtual server (OS: Ubuntu 18.04).

Recently, I wanted to use VS Code and I installed it and I used the command:

sudo code --user-data-dir="~/.vscode-root"

How can I return this command and make it like the first day?


Solution 1:

The Visual Studio Code will run as a root using the following command:

$ sudo code . --user-data-dir='.' --no-sandbox