A few suggestions and Issues

3 Posts
2 Users
0 Reactions
1,780 Views
Posts: 2
Topic starter
(@mythas)
Member
Joined: 2 years ago
[#130]

Hi! Thanks for making this! So far its working really well. A few suggestions and issues:

 

SELECT TOP N doesn't format well. Its not recognized as a keyword and gets put on the first line of the select items. 

 

image
 
Having window functions spread over multiple lines can be overkill. Could we have a no linebreak on window function if under n characters option? Similar to whats available for case statements.
image
 
Aliases on case statements don't get aligned properly. 
 

image
 
I am using the VSCode extension

2 Replies
Posts: 2
Topic starter
(@mythas)
Member
Joined: 2 years ago

It is also not handling square brackets around column names well. 

image

is being formatted as

image

the extra spaces in the [ ] breaks the query as those aren't the column names

 


Reply
Guido
Posts: 295
Admin
(@admin)
Member
Joined: 5 years ago

Hi @mythas,

thanks for your feedback. For the last post (square brackets), did you choose the correct DB (e.g. SQL Server)?

Regards

Guido


Reply
Share: