Skip to content
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

Formatting SQL would be fantastic #248

Open
martoiu opened this issue Apr 12, 2022 · 2 comments
Open

Formatting SQL would be fantastic #248

martoiu opened this issue Apr 12, 2022 · 2 comments

Comments

@martoiu
Copy link

martoiu commented Apr 12, 2022

It would be great if one could format the SQL in the TextBox human friendly.

Imagine that I have the SQL "Select id, title, name FROM Blogs" and calling some method, the TextBox would format it like:

SELECT
id
,title
,name
FROM Blogs

@WrongBit
Copy link

WrongBit commented Apr 12, 2022

Two problems: 1) formatting SQL is not so trivial - it's enough to introduce nested query and you fall into complex parsing problem. 2) Kind of formatting you offer - I immediately dislike it, because I format like this:

SELECT smt
FROM that
LEFT JOIN him
ORDER BY zat

How you gonna select proper look? :) How many people - that many variants.

And finally... guys, it's ENGINE FOR EDITOR, it's not IDE! Don't expect it will do all job for you. Wanna formatting? Write IDE and do whatever you like, task of engine - just give you tool to present & edit text.

@AyProductions
Copy link

By the way, this editor also allows you to make your own formatting. Better do it on your own. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants