{"repo":"dlang-community/dfmt","free":true,"listed":false,"github":"https://github.com/dlang-community/dfmt","clone":"git clone https://github.com/dlang-community/dfmt.git","description":"Dfmt is a formatter for D source code","language":"D","stars":218,"topics":["code-formatter","formatter","dlang"],"license":"BSL-1.0","category":"dev-tools","readme_excerpt":"dfmt dfmt is a formatter for D source code Status dfmt is beta quality. Make backups of your files or use source control when using the --inplace option. Installation Installing with DUB Building from source using Make Clone the repository Run in the dfmt directory To compile with DMD, run in the dfmt directory. To compile with LDC, run instead. The generated binary will be placed in . Building from source using dub Clone the repository run dub build --build=release , optionally with --compiler=ldc2 Using By default, dfmt reads its input from stdin and writes to stdout . If a file name is specified on the command line, input will be read from the file instead, and output will be written to stdout . dfmt uses EditorConfig files for configuration. If you run dfmt on a source file it will look for .editorconfig files that apply to that source file. If no file is specified on the command line, dfmt will look for .editorconfig files that would apply to a D file in the current working directory. Command line options can be used instead of .editorconfig files, or to override options found there. Options --help -h : Display command line options. --inplace -i : A file name is required and the file will be edited in-place. --align switch statements : see dfmt align switch statements below --brace style : see dfmt brace style below --compact labeled statements : see dfmt compact labeled statements below --end of line : see end of line below --indent size : see indent size below --indent","default_branch":null,"files":null,"tree":[],"storefront":"/r/dlang-community","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/dlang-community/dfmt/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}