I'm using Webstorm to write my code.
my code is a mess now,
how can I arrange it nicely and do text Indent?
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 .
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.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With