Hello!
Attached are current designs for SQL autoformatting. This feature is not developed yet, only mockups of a potential solution so technical implementation is still being discussed. Style guide for autoformatting doesn't yet exist either, what's shown is manually formatted by another person.
When a user highlights a section of text, a menu option appears below with the option to autoformat text.
Not included in this current design:
- other options available when highlighting multiple sections of text
- compacting queries
We're currently testing this design with pgAdmin3 users. Looking to validate with a few more before developing the feature. Let us know your thoughts!
1. Query pasted into text editor

2. Query highlighted and autoformat option appears
3. Query formatted

Thanks Dave! We came to the same conclusion about a button press. And thank you for the SQL guidelines.