Segment Formatting
when having multiple nested Select Statements, it formats based on the top-most parent Select statement instead of, either the encapsulated statement or the Select keyword.
Potential idea: If there is a Select keyword, indent appropriate its siblings but if a nested select is included inside one of the sibilings then base its indention key off the new select pattern, and so on.
For example:
Select
Field1,
Field2,
( Select
Field3,
Field4,
From Table2 ) as Field_5
From Table1
![](https://secure.gravatar.com/avatar/f76d79a3e9e19fb4a5bfcae023c8cf2a?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)
-
John Wood commented
Comment stripped out Spacing, but i use a 2 space character tab formatting for children objects for SQL statements.