Set the default IDE for new workspaces
Set the default editor that Che uses when creating new workspaces to ensure a consistent development experience. The default editor is specified by its plugin ID in the publisher/name/version format.
Prerequisites
-
An active
kubectlsession with administrative permissions to the Kubernetes cluster. See Overview of kubectl. -
jq. See Downloadingjq.
Procedure
-
Determine the IDs of the available editors. An editor ID has the following format:
publisher/name/version.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>"}}}'where:
<default_editor>-
The default editor specified as a plugin ID in
publisher/name/versionformat or as a URI.
Verification
-
Create a new workspace from the Che Dashboard and verify that the configured default editor opens.