I have VS Code version 1.63.2 with a problem.
I want to format some selection of HTML in PHP file. But the whole document is formatted as if I clicked on Format Document. How to solve this problem?
CodePudding user response:
Install Format HTML in PHP extension in VS Code. Select the HTML codes you want to format in the *.php
file and click the Format HTML in PHP
option ( CTRL ALT F) in the right-click menu.