Notepad++/Eclipse sql code auto-indent option?

Yes, there is a free/open-source T-SQL formatting plugin for Notepad++, called “Poor Man’s T-SQL Formatter”. It is available in the NPP “Plugin Manager” plugin list (gets updated every once in a while automatically), and is also available for manually downloading/installing from here: http://www.architectshack.com/PoorMansTSqlFormatter.ashx If you just want to check it out without adding to notepad++, … Read more

In Python, how to tweak Black formatter, if possible?

This is due to the default line length for black being longer than you’d like – 88 characters per line. To decrease the line length, you can use the –line-length flag as documented here: https://black.readthedocs.io/en/stable/usage_and_configuration/the_basics.html For example: $ black –line-length 80 example.py Black explains the –line-length setting in more detail here: https://black.readthedocs.io/en/stable/the_black_code_style/current_style.html#line-length Line length You … Read more

How to generate an Eclipse formatter configuration from a checkstyle configuration?

In Eclipse (3.6): Install Checkstyle plug-in Import stylesheet using Windows –> Preferences, General –> Checkstyle –> New. Since you have an external file, choose “external file” as the type. Right-click on your project in the Package view and select Checkstyle –> Create Formatter-Profile. Then enable the formatter for your workspace: Windows –> Preferences –> Java … Read more

Is there a Haskell code formatter?

New answer I have now written hindent, which is written in terms of haskell-src-exts. It has Emacs and Vim support. Old answer There is haskell-src-exts which will parse your code and it has a pretty printing module for printing the AST to a string. E.g. import Language.Haskell.Exts main = interact codeFormat codeFormat = check . … Read more

How can I apply only one clang-format action?

I think clang format was simply not designed for this. Rules are not things it applies incrementally, the program is instead built around, parsing your entire program and forgetting (most of) the old whitespace, and generating new whitespace based on the rules you select. You can see some overview of the architecture here: http://www.llvm.org/devmtg/2013-04/jasper-slides.pdf First … Read more