I am using VSCODE for obvious purpose and I am running it via root permissions on Ubuntu using a command sudo code --user-data-dir="~/.vscode-root"
sudo code --user-data-dir="~/.vscode-root"