Phpcodebeautifier Use and Installation
1. Download PHPCB http://www.waterproof.fr/products/phpCodeBeautifier/
2. After decompression, put the Phpcb.exe inphpedThe installation directory
3. OpenphpedTools-settings
After finding the integration selection, click on the right side of the AddMenu window to enter the name you want to call, such as Formatcode
4. Select the right side of the menu you just added and click Edit in the Parameters window to configure as follows
Execute With:shell
Command Line:c:\program files\nusphere\phped\phpcb.exe--equal-align-position--padding-char-count 4--space-after-if--space-after-switch--space-after-while --glue-amperscore--force-large-php-code-tag--align-equal-statements--comment-rendering-style PEAR-- Extra-padding-for-case-statement--glue-arrow--optimize-eol--one-true-brace-- One-true-brace-function-declaration @FName @
of which C:\Program files\nusphere\phpedYou'll have to change.phpedThe installation path
Shortcut: This is the shortcut key for execution I set my own alt+f
Select the following two items in the Options option below the window
Work with editor
Return Results to Editor
Click Close to close the window to save
Open a messy php fileFormattingSee if there's any effect.