0

Is there a way to configure uncrustify to associate a specific language to a custom file extension?

I am using visual studio code on Linux with the uncrustify plugin. Formatting works perfectly if I rename a .groovy file to .java.

I would like to be able to configure uncrustify to associate .groovy files to java language

LZR
  • 948
  • 10
  • 28

1 Answers1

1

Maybe this'll do... Add to your settings.json:

"files.associations": {
    "*.groovy": "java"
}
Alex
  • 59,571
  • 22
  • 137
  • 126