how to access root folder via vs code code example
Example 1: open vscode in terminal sudo
sudo code --user-data-dir="~/.vscode-root"
Example 2: VS Code not showing subfolders when there is only one
File > Preference > Settings and disable "explorer.compactFolders".
//type "explorer.compactFolders" in search box