Code completion and formatting settings


In Settings > Code Style > XML I've selected the option for putting spaces "Around "=" in attribute".

This works correctly when I reformat my code.

For example this...

<myTag myAttribute="myValue"

... gets reformatted like this ...

<myTag myAttribute = "myValue"

But when I use code completion for attributes, it doesn't surround the equals sign with spaces.

For example, if I type this ...

<myTag myAttri

... then hit enter, I get this ...

<myTag myAttribute=""

... when I'd prefer to get this ...

<myTag myAttribute = ""

Is there any way to get IntelliJ to do this?



Please sign in to leave a comment.