Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make text Indent in Webstorm

Tags:

ide

webstorm

I'm using Webstorm to write my code.

my code is a mess now,

how can I arrange it nicely and do text Indent?

like image 492
Lir An Avatar asked Jun 21 '13 07:06

Lir An


People also ask

How do I align text in WebStorm?

Go to PHP Storm > Preferences > Editor > Code Style > PHP > Wrapping and Braces > Assignment Statement > Align consecutive assignments . To activate it go to Code > Reformat Code or press Cmd+Opt+L .

How do I set tab indentation in IntelliJ?

Open indentation settings in code style scheme Click the widget and select Configure Indents for 'Language'. In the dialog that opens, you can change settings for tabs and indents and also configure other code style settings. Click OK. Reformat the necessary part of your project to apply new indentation settings.

How do I use EditorConfig WebStorm?

In the Project view, right-click a source directory containing the files whose code style you want to define and choose New | EditorConfig from the context menu. Select the properties that you want to define so that WebStorm creates stubs for them, or leave all checkboxes empty to add the required properties manually.


1 Answers

You should select Code | Reformat code in main menu. Also you could control how your code will be reformatted in Settings | Code Style.

Additional info can be found in WebStorm help

like image 188
de1mar Avatar answered Oct 25 '22 12:10

de1mar