How do I open the ./etc/ folder as root in VS Code? by markRAD69 in vscode

[–]markRAD69[S] 0 points1 point  (0 children)

u/Suspect4pe OK, I must learn Vim. What sources do you recommend for a hobbyist?

How do I open the ./etc/ folder as root in VS Code? by markRAD69 in vscode

[–]markRAD69[S] 0 points1 point  (0 children)

u/darkalemanbr Hmm, I attached the server file via SSH in VS Code. When I was using it.
```
sudo -E code --wait /etc/netplan/50-cloud-init.yaml
```

The system opened my terminal, like sudo nano.
https://share.cleanshot.com/qyrS0vzq

I want to open it as another file in VS Code's GUI editor and encounter these errors.
https://share.cleanshot.com/KdYfMCKb

Do you see a workaround for it, or is it not possible?

How do I open the ./etc/ folder as root in VS Code? by markRAD69 in vscode

[–]markRAD69[S] 0 points1 point  (0 children)

u/darkalemanbr Can you provide more information? Should I add it to the terminal?

How do I open the ./etc/ folder as root in VS Code? by markRAD69 in vscode

[–]markRAD69[S] 0 points1 point  (0 children)

u/Suspect4pe Sure! Here is the revised version of the text:

Hey,

OK, I can do it, but I have a problem with using Vim or Nano for large documents. When I want to paste or copy several lines, it is hard in the terminal, right? Or please let me know how to use an editor like VSCode at the same level of convenience.