TaoK / PoorMansTSqlFormatter

A small free .Net and JS library (with demo UI, command-line bulk formatter, SSMS/VS add-in, notepad++ plugin, winmerge plugin, and demo webpage) for reformatting and coloring T-SQL code to the user's preferences.
http://www.architectshack.com/PoorMansTSqlFormatter.ashx
GNU Affero General Public License v3.0
969 stars 268 forks source link

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

Open xqg1316 opened 2 years ago

xqg1316 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

Thank you very much, the Windows environment has been resolved. 非常感谢您, Windows环境已解决

How does Sublime Text use PoorMansTSqlFormatter for Mac M1. Mac M1 环境下, Sublime text 如何使用PoorMansTSqlFormatter插件

2022年3月18日 15:27,Tao Klerks @.***> 写道:

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 aa 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 https://github.com/TaoK/PoorMansTSqlFormatter/files/8302426/PoorMansSqlFormatter_Sublime_plugin_windows.zip — Reply to this email directly, view it on GitHub https://github.com/TaoK/PoorMansTSqlFormatter/issues/280#issuecomment-1072098572, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJ6MABSTH32ZPT72IPTKY6TVAQV5NANCNFSM5QZCUKPQ. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you authored the thread.