Json5 comment formatting

I have set my appsettings.json to behave like a json5 document to “support” comments. The problem that I have is when I want to reformat the file, the comment are always put on a new line but I want them to be at the end of the line. Ex: 

{
  "Duration": 1000 // In ms
}

 

instead of 

{
  "Duration": 1000 
  // In ms
}

 

0
1 comment

Hello Olivier,

Thank you for contacting Rider support. Unfortunately, there is no way to configure this at the moment. Apologies for the inconvenience. I submitted this issue to our tracker: IJPL-165072 Allow setting whether comments in json5 should be wrapped in json5 files

Please watch the issue for further updates. Feel free to upvote it to demonstrate your interest.

If there is anything else I can assist you with, please let me know.

Have a nice day!

0

Please sign in to leave a comment.