File Exchange

image thumbnail


version (69.2 KB) by Oleg Komarov
Improve readability of your code and keep it tidy


Updated 28 Jul 2017

From GitHub

View Version History

View license on GitHub

MATLAB programmatic utilities to keep your code more readable, smart indented and free of eccessive white space.

* justify() Improves readability of your code by aligning the assignment operator of a block of code (see image below for example)
* smartIndent() Applies smart indent programmatically. See the ufficial TMW blog for supported modes.

For a quick overview of justify, see the .gif.

Cite As

Oleg Komarov (2021). okomarov/TidyCode (, GitHub. Retrieved .

Comments and Ratings (2)


Nice work.


MATLAB Release Compatibility
Created with R2014a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!