VIM Insert PHPdoc automatically

前端 未结 3 1170
有刺的猬
有刺的猬 2021-01-31 10:53

Is there a way to insert PHPDoc in VIM using a command or key combination?

For example, I have a class:

class MyClass
{

  public function __construct()          


        
3条回答
  •  情话喂你
    2021-01-31 11:47

    I can't speak for PHP specifically but you have a couple of options. You can use abbreviations (maybe not good for the specific example) or you can look for a plugin. I can suggest https://github.com/garbas/vim-snipmate ( I use it and it works fine).

提交回复
热议问题