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

How does Sublime Text use the PoorMansTSqlFormatter plug-in #280

Open
xqg1316 opened this issue Mar 15, 2022 · 2 comments
Open

How does Sublime Text use the PoorMansTSqlFormatter plug-in #280

xqg1316 opened this issue Mar 15, 2022 · 2 comments

Comments

@xqg1316
Copy link

xqg1316 commented Mar 15, 2022

How does sublime text use the PoorMansTSqlFormatter plug-in to format SQL, and how can it be easily used like Notepad++ with custom formatting.

Sublime Text 如何使用PoorMansTSqlFormatter插件, 格式化SQL, 如何像Notepad++方便的使用该插件, 并且可以自定义格式.

@TaoK
Copy link
Owner

TaoK commented Mar 18, 2022

Hi, unfortunately, as you might notice by the number of open issues here, I have not been able to actively maintain this project for a few years now.

I have been using Sublime Text for some time, however, and spent a little while seeing how a plugin might work.

I've created a very simple plugin attached here, maybe it helps. It's windows-only unfortunately - creating a cross-platform solution is waaay beyond my time budget here.

If this works for you and you want to manage the formatting options, I'm afraid you need to look into the command-line arguments of the SqlFormatter.exe program and adjust the call in poor_mans_format.py.

Hope this helps!

PoorMansSqlFormatter_Sublime_plugin_windows.zip

@xqg1316
Copy link
Author

xqg1316 commented Mar 20, 2022 via email

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

2 participants