Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rubymine - how to format the code

I'm using JetBrains Rubymine for developing Rails applications. It's a great IDE but unfortunately I didn't find how to format the hTML or Ruby code.

Any suggestiongs?

like image 987
Alexandre Avatar asked Jul 03 '12 09:07

Alexandre


People also ask

How do I format a code automatically in IntelliJ?

Automatically formatting code in Android Studio and IntelliJ To automatically format your code in the current source code window, use Cmd+Alt+L (on Mac) or Ctrl+Alt+L (on Windows and Linux).

How can I get beautify code in Phpstorm?

In the editor, select a code fragment you want to reformat. Before reformatting, you can take a look at the code style settings that are applied to the selected code: press Alt+Enter and click Adjust code style settings. From the main menu, select Code | Reformat Code or press Ctrl+Alt+L .


1 Answers

Ctrl + Alt + I for Auto-indent line(s)

For more keymaps.

like image 118
tiktak Avatar answered Sep 28 '22 03:09

tiktak