-
Notifications
You must be signed in to change notification settings - Fork 409
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: Inline mode #360
Comments
Seems like a pretty sensible request. Though it probably makes more sense for use in an editor plugin, e.g. to format a selected line. It would actually be not that hard to implement. We already have some-sort of inline mode inside the formatter to format short parenthesized blocks. We'd need to extend this to also apply for other parts of SQL which currently trigger line breaks. Perhaps another value for the @inferrinizzard what do you think of this? |
Yes, definitely a use case for many SQL devs - this is along the lines of what the |
I saw it ware removed in changelog of |
+1 It could be a very useful feature |
This would be a cool feature to have. I have come across two different situations when I wished for this feature recently. I found a neat trick to get quite close:
Setting the expressionWidth to a really big value solves the issue with extra space instead of parenthesis, which looks weird on one line. Though I am not 100% sure if this works in all situations since it is kind of a hack. Having it as an official feature would give extra confidence about the reliability. |
Describe the Feature
Sometimes I need inline mode. For example, 'select * from tbl' to 'SELECT * FROM tbl;'.
Why do you want this feature?
Inline mode is a frequent scene for simple SQL statement in docs.
The text was updated successfully, but these errors were encountered: