Formatting PHP code in Microsoft Expressions Web 4

1.2k Views Asked by At

Does Microsoft Expressions Web 4 has a option (or keyboard shortcut) to format PHP Code?

5

There are 5 best solutions below

1
On BEST ANSWER

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.

0
On

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
On

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
On

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
On

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.