• Stars
    star
    256
  • Rank 158,333 (Top 4 %)
  • Language
  • Created almost 10 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A curated list of awesome code formatting tools and libraries

A curated list of code formatters. Inspired by awesome-machine-learning. Other awesome lists can be found in the awesome-awesomeness list.

If you want to contribute to this list (please do), send me a pull request or contact me @rishirdua

Table of Contents

General Purpose

  • Artistic Styler - Source code indenter, formatter, and beautifier for the C, C++, C# and Java programming languages.
  • Atom-Beautify - Beautify HTML, CSS, JavaScript, PHP, Python, Ruby, Java, C, C++, C#, Objective-C, CoffeeScript, TypeScript, Coldfusion, SQL, and more in Atom editor.
  • Prettier - An opinionated code formatter for JavaScript, Flow, TypeScript, Vue, JSON, CSS, Less, SCSS, GraphQL, and Markdown
  • Uncrustify - Beautifier for C, C++, C#, ObjectiveC, D, Java, Pawn and VALA.
  • Unibeautify - Universal code beautifier with a GitHub app. Supports HTML, CSS, JavaScript, TypeScript, JSX, Vue, C++, Go, Objective-C, Java, Python, PHP, GraphQL, Markdown, and more.
  • clang-format - Automatic formatting for C, C++, Java, JavaScript, ObjectiveC and Protobuf.

Language Specific

C/C++

  • BCPP - indents C/C++ source programs, replacing tabs with spaces or the reverse.
  • GNU Indent - Unix utility that reformats C and C++ code in a user-defined indent style and coding style. GNU style is used by default.
  • GreatCode - C/C++ source code beautifier that is now fully open source.

Cobol

  • Cobol Beautifier - Parses your program just like a real Cobol compiler and then it generates Cobol code from the resulting Cobol Program Tree.

CSS

  • CSSTidy - Opensource CSS parser and optimiser available as executeable file which can be controlled by command line and as PHP script.

Fortran

  • Fortran 90 PPR - Fortran 90 preprocessor and formatter written in Fortran 90.

Haskell

  • hindent - Extensible Haskell pretty printer available both as a library and an executable.

HTML

  • HTB - Command-line utility to reformat HTML/XML/XSLT source code with an array of user specified options.
  • Tidy - Free-standing C library

Java

  • Google Java Format - google-java-format is a program that reformats Java source code to comply with Google Java Style.
  • JALOPY - Source code formatting tool for the Sun Java Programming Language.
  • Jindent - Commercial source code formatter for the programming languages Java, C and C++

JavaScript

JSP

  • JSPPP - Indentor for JSP files in various styles.

.NET

  • NArrange - Code beautifier that automatically organizes code members and elements within .NET classes.

Perl

  • PerlTidy - Perl script which indents and reformats Perl scripts.

PHP

  • PHP_Beautifier - Beautifier for PHP
  • phpCB - Tool available as a GUI, command line and an integrated tool of PHPEdit.
  • phpStylist - Formatter with customizable options.

PL/SQL

  • Pl/Sql tidy - Program to tidy, beautify or format Pl/Sql code in a batch file or Dos prompt.
  • Poor Man's T-SQL Formatter - .Net 2.0 library with demo UI, command-line bulk formatter, SSMS/Visual Studio add-in, notepad++ plugin, winmerge plugin, and web service for reformatting and coloring T-SQL code to the user's preferences.

Python

  • black - The uncompromising Python code formatter
  • pindent - Adds comments when blocks are closed, or can properly indent code if comments are put in.
  • yapf - A formatter for Python files.

Ruby

Shell

  • ShellIndent - Indent formatting program for .sh scripts.

VBS

  • VBSBeautifier - Beautifier for ASP and clientside VBScript files.

XML

  • XML Indent - XML stream reformatter written in ANSI C.

More Repositories

1

facebook-birthday-response

Python script that automatically thanks all users and like their birthday wishes on your timeline
Python
127
star
2

machine-learning-matlab

Matlab implementation of Machine Learning algorithms
MATLAB
57
star
3

emotion-classification

Feature selection via dependence maximization for EEG based emotion classification.
Python
51
star
4

commerce-ccavenue

Edited the module commerce_ccavenue to make it work with the new CCAvenue multi-currency processing payment gateway
PHP
11
star
5

smart-chat

Real-time personalized recommender for instant messaging
PHP
10
star
6

linear-separability-matlab

This MATLAB code tests if given set of points are linearly separable using Linear Perceptron. Linear Perceptron is guaranteed to find a solution if one exists. This approach is not efficient for large dimensions. Computationally the most effective way to decide whether two sets of points are linearly separable is by applying linear programming.
MATLAB
10
star
7

basis-expansion

Generates features according to different non-linear basis expansion methods like Recht and Rahimi’s Random Fourier Features
MATLAB
9
star
8

HH-LinkedIn

LinkedIn Profiles of Hackathon Hackers Facebook group
4
star
9

lmgtfy-chrome-extension

An extension for Google Chrome that allows you to generate an LMGTFY URL. LMGTFY is for all those people who find it more convenient to bother you with their question rather than google it for themselves.
JavaScript
4
star
10

ocr-recognition

Undirected Graphical Model for the optical character word recognition task
Java
3
star
11

eep702-software-laboratory

Modified source codes of my submissions for EEP702 Fall 2013 Semester at IIT Delhi
HTML
2
star
12

kakfa-youtube

A web app to enable guests to add videos to your TV playlist without sharing your home WiFi for Chromecast, or setting up permissions
Java
1
star
13

github-lists

Lists for GitHub
PHP
1
star
14

codechef

Submissions for CodeChef
Java
1
star