axmor / typecs

TypEcs - TypeScript IDE for Eclipse
61 stars 14 forks source link

Add "Correct Indentation" or "Indent Line" command #57

Open tupelo-schneck opened 9 years ago

tupelo-schneck commented 9 years ago

My Eclipse has commands to "Correct Indentation" when Editing Java Source and "Indent Line" when Editing JavaScript Source. The key binding is command-I by default and I also bind to the Tab key. In either case the result is to fix the indentation of the current line.

I would like a similar command for Editing TypeScript Source. "Format" doesn't quite work because in the absence of a selection it formats from the cursor position to the end of the document. Something that works like format but on the current line would be fine.