I know my question is simple, but how to open basic php block in VSCode, like so - <?php ?>
?
In Sublime I simply type php and press Tab, and the block created. But can't find the same shortcut for VSCode.

Visual Studio Code中的PHP块快捷方式
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-
2条回答 默认 最新
- dourong9253 2018-06-04 15:26关注
You can add a custom user snippet to Visual Studio Code:
- Open "Preferences"
- User Snippets
- Select html.json (HTML)
-
Paste the following custom snippet:
"php": { "prefix": "php", "body": [ "<?php $1 ?>" ], "description": "php tag" }
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报