I was searching for the import function almost forever until I figured out how to use the TYPO3 code formatting xml file provided in the TYPO3 wiki.
So here is a short article how to import the file and where to find it.
- Download the xml file from: http://wiki.typo3.org/File:Standard.xml
- [optional] Open the xml file in the editor of your choice and change the schema name at the top of the file from Standard to something that is later more easy to identify in your IDE.
- Copy the file to your user-files for PHPStorm, depending on your system. In Windows7 it is in C:\\Users\\<username>\\.WebIde10\\config\\codestyles
- Restart your IDE if it is running, otherwise just start it.
- Go to: Settings -> Code Style
- If you copied the file to the correct place it should show up in the select box. If you choose the option at point 2 and renamed the schema, you will find it under the new name, otherwise it will be “Standard”
- Select it, press apply, enjoy clean code.
But remember, good code formatting alone does not make good code 😉
Hope I could help someone.
Update (thx @tolleiv):
For the Max OSX users – /Users//Library/Preferences/WebIDE10/codestyles