jetbrains-plugin-graph-database-support icon indicating copy to clipboard operation
jetbrains-plugin-graph-database-support copied to clipboard

Suggestion: formatter to allow extra spaces between relationships and nodes

Open lilianaziolek opened this issue 7 years ago • 3 comments

Hi, let me start by saying I REALLY appreciate your work on the plugin, it makes life SO much easier. I have a very small suggestion for the formatter options. At the moment, the formatter "squashes" the relationships and nodes not leaving any spaces between them: (a)-[:REL]->(b) The style I much prefer is to have more white space in such situation, i.e. (a) -[:REL]-> (b)

  • it makes it more readable to me, especially with longer queries. I'm not sure how difficult it would be to add this to the plugin as an option but if it's possible, I'd be very happy :)

lilianaziolek avatar Apr 02 '17 12:04 lilianaziolek

Hi @lilianaziolek,

Currently it's not available because we have hardcoded all rules, so they are not configurable (official style guide).

Unfortunately making them configurable is not that simple (and not that hard). We have plans to make rules configurable in future.

But in meantime, unfortunately - no :(

FylmTM avatar Apr 02 '17 18:04 FylmTM

Thanks for your reply and I completely understand. Would it be possible to keep this issue open so that I can keep track and see when - at some point in the future - it's added as an option?

lilianaziolek avatar Apr 02 '17 19:04 lilianaziolek

Sure @lilianaziolek .

I will do exactly that! :)

FylmTM avatar Apr 03 '17 06:04 FylmTM