KaotoIO / kaoto

The UI of the Kaoto project
https://kaoto.io
Apache License 2.0
29 stars 23 forks source link

Offer a reformat feature #96

Open lordrip opened 1 year ago

lordrip commented 1 year ago

Context

Currently, there are changes in the Camel YAML Schema, going from kebab-case to camelCase and this might be transformed using automated process directly from kaoto-next

Goal

The goal of this issue is to provide a reformat button to the source code editor that:

igarashitm commented 1 year ago

Aligning expression dialect would fall into here as well

- when:
    simple: ${header.foo} == 'foo'
 - when:
     simple:
       expression: '${header.foo} == 'foo'
 - when:
     expression:
       simple: ${header.foo} == 'foo'
 - when:
     expression:
       simple:
         expression: ${header.foo} == 'foo'
lhein commented 10 months ago

That isn't just a pure code formatting as the title might suggest. This is more of an optimize code feature.