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
Procedure
  1. 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)"]'
  2. 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/version format or as a URI.

Verification
  • Create a new workspace from the Che Dashboard and verify that the configured default editor opens.