Skip to content

Instantly share code, notes, and snippets.

@mordr
Last active February 27, 2025 13:53
Set Visual Studio Code as default editor for kubectl

Set KUBE_EDITOR to Visual Studio Code, assumes 'code' is in PATH

export KUBE_EDITOR='code --wait'

Running k edit ... will open up the yaml using Visual Studio Code.

@ivaylokardashev
Copy link

$env:KUBE_EDITOR="code --wait"

Thanx you

@WizzzOzzz-Ori
Copy link

thanks mate!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment