Ami*_*bel 10 php methods interface implements visual-studio-code
如何从接口“自动实现”/生成方法到 PHP 类?我想使用VS Code为它
界面 :
Run Code Online (Sandbox Code Playgroud)interface MyInterface{ public function myMethod($param); }
班级 :
Class MyClass implements MyInterface{
//myMethod should be auto generate by vscode
public function myMethod($param){
}
}
Run Code Online (Sandbox Code Playgroud)
VS Code 中是否存在此功能?
VSCode 不支持 PHP 的开箱即用功能。据我所知,任何现有的 PHP 插件(例如 PHP Intelephense 或 PHP IntelliSense)都无法提供此功能。PHP Intelephense 不过,它会根据已实现的接口自动完成方法。
编辑 2021年8月25日
Intelephense premium 有这样的功能,您需要在https://intelephense.com/购买非常便宜的许可证
归档时间: |
|
查看次数: |
4778 次 |
最近记录: |