I'd expect the Dart Editor to default to opening YAML files. Double clicking a yaml file like pubspec.yaml should open within the Editor. There doesn't seem to be a right-click/open in editor option, either.