github: issue - 167
It seems to me that this might be caused by some sort of conflict with the core language-*
packages over thetab
key.
I am not running into this issue when using enter
, only when using tab
.
So for example (with no 3rd party packages except for docblockr):
<?php
/**<tab>
function apples( $bananas ) {}
Results in:
<?php
/**
*
*/
function apples( $bananas ) {}
However:
<?php
/**<enter>
function apples( $bananas ) {}
Results in what you are expecting:
<?php
/**
* [apples description]
* @param [type] $bananas [description]
* @return [type] [description]
*/
function apples( $bananas ) {}
But if you disable the language-specific features, for example by removing the opening <?php
tag, dropping the.php
extension or disabling the language-php
package, both enter
and tab
work as they are supposed to.
The same goes for .js
files and the language-javascript
package.
结论: 用enter键生成注释而不是tab