Configuring default editor
Learn how to configure Che default editor.
Prerequisites
-
An active
kubectlsession with administrative permissions to the Kubernetes cluster. See Overview of kubectl. -
jq. See Downloadingjq.
Procedure
-
An editor ID has the following format:
publisher/name/version. Find out the IDs of the available editors:kubectl exec deploy/che-dashboard -n eclipse-che \ -- curl -s http://localhost:8080/dashboard/api/editors | jq -r '[.[] | "\(.metadata.attributes.publisher)/\(.metadata.name)/\(.metadata.attributes.version)"]' -
Configure the
defaultEditor:kubectl patch checluster/eclipse-che \ --namespace eclipse-che \ --type='merge' \ -p '{"spec":{"devEnvironments":{"defaultEditor": "<default_editor>"}}}'(1)1 The default editor for creating a workspace can be specified using either a plugin ID or a URI. The plugin ID should follow the format: publisher/name/version. See available editors IDs in the first step.
Additional resources