Suggestion/bug: preview doesn't always show examples of what formatting option we're trying

2 Posts
2 Users
0 Reactions
1,322 Views
eklein86
(@eklein86)
Member
Joined: 3 years ago
Posts: 4
Topic starter  

The Preview window at the bottom is great for the most part. However there are some options that you can't preview, so the only way to test it is to format your code or generate code through the Start Simulation in Advanced. That's an extra step I'd like to skip if possible.

Ex: under Linebreaks, you have options to break before/after commas as well as before/after pipes. When you check the before/after comma options, the Preview below adjusts to show your choice. Unfortunately the Preview doesn't have any pipes in it to show what selecting that option would do.

image

I have to go to my code or the generated code via the simulation to actually preview pipes.

image

In this tab specifically, only a || example is missing from the sample code. In another Linebreak tab, Stack GROUP BY and Stack ORDER BY appear to do nothing in the code (I'm unsure what their true purpose is without the Preview showing me). There are other options that do this same thing, so it would be awesome if the examples showed all the options available in that tab. 

 


   
Quote
Guido
(@admin)
Member Admin
Joined: 3 years ago
Posts: 233
 

this is a good idea. I will update the preview box with new examples

Thanks for your feedback


   
ReplyQuote
Share: