export KUBE_EDITOR='code --wait'
Running k edit ...
will open up the yaml using Visual Studio Code.
Thank
On macOS, has anyone encountered the problem that closing the editing page will not save the changes, and need to exit the vscode process to save the changes.
Awesome!