textmate/javascript.tmbundle — Issue #4: Auto indentation for one-line statements
Author: elii
Created: 2011-12-21 12:58:16+00:00
State: open

In JavaScript often one-line statements are used.

Instead of

if (true) {
doSomething();
}

you often use

if (true)
doSomething();

But the auto indentation of Textmate 2 always wants to indent the last line to

if (true)
doSomething();

Here is a short video that shows how it looks like in Textmate: http://cl.ly/2a3q3Q1R1W1X2o3N062n