PHPStorm


Soft Wraps

Settings/Preferences → Editor → General → Use soft wraps in editor.
Menu → View → Active Editor → Use Soft Wraps

How to align text to specific character in phpstorm

Cmd+Alt+L (in Mac) or Ctrl+Alt+L (Win) and PHP Storm will format code depends of your Code style in Settings.
TO set this code style go: File → Settings → Code style → PHP(choose here your language) → Other → Align key-value pair - mark as checked.
And then press Reformat code (Ctrl+Alt+L) and voila. You will get code, styled you write above.

How to make PhpStorm automatically highlight selection

Not the perfect solution, yet close enough:
Top Menu → View → Highlight Word at Caret
or alternatively:
Settings → Editor → General → Appearance - Highlight Word at Caret
Note that this is a BrowseWordAtCaret plugin option, so it requires the installation of the plugin. To install it, go to Settings → Plugins → Browse Repositories → BrowseWordAtCaret → Install.
This will still not highlight the word if it's part of another string, but it will highlight it in all other occasions.

Remove trailing whitespace on save

Settings → Editor → Strip trailing spaces on Save

Make PhpStorm stop automatically closing tabs

File → Settings → Editor → General → Editor Tabs → Closing Policy → Tab limit

Automatically upload to ftp when saving

You need to enable 'upload files automatically to default server' option

Remove bold in html text

Settings → Editor → Color Scheme → [Choose language] → [Choose type] → Check/Uncheck Bold

Toggling Case
  • Select text fragment, or just place the caret at the line you want to change case in.
  • On the main menu, choose Edit | Toggle Case, or press Ctrl+Shift+U.
Change the currently used syntax highlighter to another language
  • File → Settings → File Types
  • "HTML Files" -- remove *.html pattern .. and add it to "Smarty"
Change font size in project file tree in PHPStorm

Settings → Appearance & Behavior → Appearance