Thursday, November 12, 2015

C-u M-x align

For years I've always been aligning columns of code by hand. GNU Emacs has a way to do some of this automatically. For example take this:

int m_myInt;
bool m_myBool;
std:string m_myString;

And use "C-u M-x align" to turn it into:

int         m_myInt;
bool        m_myBool;
std::string m_myString;

No comments:

Post a Comment