Reformat Code with Custom Language (Dust.js)?

214 views Asked by At

I'm trying to use the automatic Reformat Code option in my JetBrains IDE (PyCharm Pro 4.5), but it won't work for my *.dust templates. I tried using the custom dust plugin (https://github.com/yifanz/Intellij-Dust), which adds syntax highlighting.

Is there really no way for the IDE to use something like my HTML Code Style settings on a different file extension or for custom definitions to be created on the fly?

1

There are 1 answers

1
Javaru On BEST ANSWER

There is not a way to define generic style definitions. The "Intelli-Dust" plugin developer would need to add them to the plug-in. or yo would need to add your own plug-in. The reason being is that defining code style formatting rule is fairly complex.