bilal.otm
bilal.otm

Reputation: 127

Titanium | How to indent all the code (in Mac)

Is there a way by which I can Indent code (complete file) in the titanium IDE? Similar to way in Eclipse.

Is there a keyboard shortcut available?

Upvotes: 0

Views: 1357

Answers (3)

Apsara Wanasinghe
Apsara Wanasinghe

Reputation: 3

On the Mac you can use the SHIFT+ COMMAND + F to format the file. Before formatting , ensure that you have defined the preferred formatting styles ( the indentation size etc ) correctly from Preferences ->Titanium Studio ->Formatter->Java Script

Upvotes: 0

Martin
Martin

Reputation: 1914

On the MAC, select the window you want to reformat the code in. At the top select Source->Format and it will also show you the shortcut keys for reformatting the code. Looks like SHIFT+COMMAND+F on my system.

Upvotes: 2

slash197
slash197

Reputation: 9034

Select code then Tab and shift+Tab works just as in every other editor

Upvotes: 0

Related Questions