Add a file type to Code Style

I am hoping that this is a feature that already exists but I haven't managed to figure out how to use it.

I am working on a Vue project at present. I would like to apply custom formatting to my Vue templates which are, incidentally, broken out into separate .vue files. Specifically, I would like to be able to have spaces inside of double curly-braces around template variables, like so:

{{ templateVariable }}

However, I haven't been able to find a way to accomplish this. Any help would be appreciated.

Thanks.

1 comment
Comment actions Permalink

There are no separate code style preferences for Vue.js files; formatting uses HTML code style preferences ( Preferences | Editor | Code Style | HTML) for tags and Javascript for the code. Unfortunately Preferences | Editor | Code Style | JavaScript | Spaces, Other/Within interpolation expressions option doesn't work for Vue.js.

Please vote for https://youtrack.jetbrains.com/issue/WEB-36410 to be notified on any progress with this issue

0

Please sign in to leave a comment.