For developing remote on the raspberry pi with vscode in your local machine with root permissions: install vscode extension ssh-remote on the remote machine (raspberry) add this at the end of /etc/ssh ...
// you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 ...