Sublime Arithmetic Editing = Magic

This Sublime Text shortcut saved my day: Evaluate Math Expression.

I had a CSV with hundreds of time values in 12hr format I needed to convert to 24hr format. Instead of lots of manual editing, I was able to use a shortcut made possible by Emmet. Simply add your math expression, highlight it, and hit command + shift + Y. Voila.

The true magic begins when you pair it with Sublime’s multi-select shortcuts.

Evaluate Math Expression

Thanks to Tommy Marshall for the clear example!



comments powered by Disqus