如何在Visual Studio Code中自动将接口的方法添加到类中?

我正在使用PHP。创建一个界面。我想将此接口的方法自动添加到类中,但是找不到方法。

我使用Visual Studio代码编辑器。我不想使用PhpStorm或任何其他IDE /编辑器,所以我真的需要解决此问题。

我的代码:

<?php 

use App\Payment\PaymentInterface;

class MyTest implements PaymentInterface
{

}

当我键入实现PaymentInterface时,我希望IDE自动将接口的方法添加到类中。

这可能吗?

jhiyueojvkcjksw 回答:如何在Visual Studio Code中自动将接口的方法添加到类中?

VS Code auto generate interface methods in php class?,但我还没有找到一种方法,实际上我正在使用phpstorm来支持所有这类事情。 我认为唯一可以帮助您的是IntelliSense插件

本文链接:https://www.f2er.com/3101474.html

大家都在问