Vue.js - Formatting code: Add space for annotation

Hi,

 

I got code which looks like:

@Prop({default: false})

The problem here is that there should be spaces added after the left curly brace and before the right curly brace. This is a vue.js project.

I tried several options within the code style for typescript, but none of the options seem to affect the annotation.

Is there some way or does it need to be implemented?

0
2 comments

Enabling spaces within object literal braces in Settings | Editor | Code Style | TypeScript | Spaces should do the thing

1

Awesome, thanks! I missed that.

0

Please sign in to leave a comment.