Home

Published

- 1 min read

You are trying to start Visual Studio Code as a super user which isn`t recommended. If this was intended, please add the argument `--no-sandbox` and specify an alternate user data directory using the `--user-data-dir` argument.

img of You are trying to start Visual Studio Code as a super user which isn`t recommended. If this was intended, please add the argument `--no-sandbox` and specify an alternate user data directory using the `--user-data-dir` argument.

The solution for this is noted below

Solution

   sudo code "your-directory" --user-data-dir='.' --no-sandbox

Try other methods by searching on the site. That is if this doesn’t work