문제

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

도움이 되었습니까?

해결책

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.

다른 팁

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.

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/

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.

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top