how to run visual studio code as run as administrator in ubuntu code example Example: open vscode in terminal sudo sudo code --user-data-dir="~/.vscode-root"