用于PHP / HTML的VSCode格式代码命令 [英] VSCode Format code command for PHP/HTML

查看:196
本文介绍了用于PHP / HTML的VSCode格式代码命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以获得VSCode格式混合的HTML / PHP代码在Windows VSCode v0.7.1?

解决方案

截至v0.7.10,尚未。它只适用于某些语言。一旦PHP进一步整合,在Mac上的快捷方式将会是 Alt + Shift + F )。/ b>

更新2016-05-30:Visual Studio代码有非常棒的PHP支持。它所缺少的是扩展。快速搜索可以发现至少三个( 1 2 3 ),声称支持PHP格式。他们大多使用Windows / Linux上的 Alt + Shift + F 标准快捷键,并在Mac上使用不同的快捷键。如果你在Mac上,试试⌥⇧F


Is to possible to get VSCode to format mixed html/php code on Windows VSCode v0.7.1?

解决方案

As of v0.7.10, not yet. It only works for some languages. Once there's more integration for PHP, the shortcut will be Alt + Shift + F (⌥⇧F on Mac).

Update 2016-05-30: Visual Studio Code has pretty awesome PHP support now. What it lacks is covered by extensions. A quick search reveals at least three (1, 2, 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.

这篇关于用于PHP / HTML的VSCode格式代码命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆