Does Microsoft Expressions Web 4 has a option (or keyboard shortcut) to format PHP Code?
Formatting PHP code in Microsoft Expressions Web 4
1.2k Views Asked by Nalaka526 At
5
There are 5 best solutions below
0

You can select all the code you want to indent and hit the tab
key. It will indent all selected lines. If you want to reduce the indent press shift+tab
.
It won't magically fix poorly formatted code, but it will help you quickly indent large blocks.
0

I don't know how it's related to MS Expressions but you can do the same from this tool: http://www.waterproof.fr/products/phpCodeBeautifier/
0

try this to format the code of an existing page:
Open the web page you want to reformat. In the Code pane, right-click and select Reformat HTML.
0

Try using PHPStorm IDE to edit/format php code. The IDE has everything you may need to edit/format/deploy/refactor code.
With PHPStorm you can reformat the code by using CTRL+ALT+L.
Have you tried Ctrl+K+F this is the usual formatting for Visual Studio Codes for ASP.NET and C# codes. I assume Microsoft would make the feature's keyboard shortcut the same. If it does not work then probably there is no built in.