Client: Windows10
Server: Ubuntu

Visual Studio Code 1.39.2
Ssh connection from client to server using SSHFS in VSCode

Change files that require root privileges on VSCode

Error message

Using SSHFS in VSCode, ssh connection from client to server. The following error message is displayed when you save after changing a file that requires root privileges.

Failed to save 'file name':
Unable to write to file (Error: Permission denied)
  • In the first place, connect with Terminal and use sudo vim "file name".
    → Success ... but I hate Vim.
  • Grant sudo permission to the login user sudo usermod -aG sudo USER_NAME
    → failure