PoorMansTSqlFormatter icon indicating copy to clipboard operation
PoorMansTSqlFormatter copied to clipboard

Sublime Text plugin?

Open TaoK opened this issue 7 years ago • 2 comments

Timothy Kim asks whether there is a Sublime Text plugin.

While there isn't, there is a command-line formatter (for windows by default - compiling in linux/mono may be not-entirely trivial, it's untested in the last 4 years). With the command-line formatter and some sort of "Invoke Command" glue in sublime text, in-place formatting should be straightforward to achieve.

One sublime text plugin that provides such "Invoke Command" functionality (using STDIN and STDOUT, as supported by the command-line formatter) is "FilterPipes": https://packagecontrol.io/packages/FilterPipes

So it looks like there should be a pretty straightforward workaround... but I haven't tested.

TaoK avatar Oct 19 '17 12:10 TaoK

Nripin Babu had requested the same, much earlier.

TaoK avatar Oct 19 '17 14:10 TaoK

Given the (likely?) possibility/probability of a workaround, this seems hard to justify prioritizing.

Especially with the recent Node/JS-based command-line formatter utility available on any OS ( https://www.npmjs.com/package/poor-mans-t-sql-formatter-cli ), a pipe-based approach seems perfectly acceptable.

TaoK avatar Nov 05 '17 16:11 TaoK