Does anyone know of a style formatting plugin for TextMate? I'd like an automated way to configure TextMate for Google Style https://code.google.com/p/google-styleguide/.
I looked for something similar, and all I could find was EditorConfig..
Supposedly a standard, but it seems quite basic with not enough options to be terribly useful. There is a TextMate plugin, but despite installing it Ive yet to see it ever alert me or show anything to confirm it actually doing its job
If you cant find anything, you might look into a lint checker. I have a js-hint one which runs in TM everytime I save It can show tooltips to alert me of issues, or output in more detail to textmates html panel. You may be able to repurpose that without too much difficulty
https://github.com/bodnaristvan/JSHint.tmbundle
On 25 February 2015 at 15:07, Andrew Pennebaker <andrew.pennebaker@gmail.com
wrote:
Does anyone know of a style formatting plugin for TextMate? I'd like an automated way to configure TextMate for Google Style https://code.google.com/p/google-styleguide/.
-- Cheers,
Andrew Pennebaker
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
On 25 Feb 2015, at 22:07, Andrew Pennebaker wrote:
Does anyone know of a style formatting plugin for TextMate? I'd like an automated way to configure TextMate for Google Style
The C bundle’s Reformat Document does use clang-format which has a ‘Google’ style option, though clang-format is not included with the bundle, so you will have to install that manually, in order to use the command.
The command works for C, C++, and Objective-C. Google Style is defined for other languages as well, which clang-format does not support, but maybe there is another tool for these.
On 2015-03-04 06:14, Allan Odgaard wrote:
The command works for C, C++, and Objective-C. Google Style is defined for other languages as well, which clang-format does not support, but maybe there is another tool for these.
In addition to those languages, clang-format apparently supports Java, JavaScript and Protocol Buffers [1].
[1] See language setting: http://clang.llvm.org/docs/ClangFormatStyleOptions.html