Format code command for PHP/HTML in Visual Studio Code

前端 未结 7 1839
滥情空心
滥情空心 2020-12-29 04:32

Is it possible to get Visual Studio Code to format mixed HTML and PHP code on Windows Visual Studio Code version 0.7.1?

7条回答
  •  忘掉有多难
    2020-12-29 04:45

    Visual Studio Code has pretty awesome PHP support. What it lacks is covered by extensions. A quick search reveals at least three (1, 2, and 3) that claim to support PHP formatting.

    They mostly seem to use the standard shortcut of Alt + Shift + F on Windows/Linux, with varying shortcuts on Mac. If you're on Mac, give ⌥⇧F a try.

提交回复
热议问题