how to run vscode in sudo mac code example Example: open vscode in terminal sudo sudo code --user-data-dir="~/.vscode-root"