Home > Backend Development > PHP Tutorial > sublime DocBlocker 如何输出@author等

sublime DocBlocker 如何输出@author等

WBOY
Release: 2016-06-06 20:37:53
Original
1919 people have browsed it

在php中

<code><?php /**
 * 
 *
 * copyright
*/
</code></code>
Copy after login
Copy after login

上面如何在copyright前输出@,我按了/**回车后,它会自动补全注释,但再按@输不出来

如何输出想这样的块注释

<code><?php /**
 * Typecho Blog Platform
 *
 * @copyright  Copyright (c) 2008 Typecho team (http://www.typecho.org)
 * @license    GNU General Public License 2.0
 * @version    $Id: index.php 1153 2009-07-02 10:53:22Z magike.net $
 */
</code></code>
Copy after login
Copy after login

回复内容:

在php中

<code><?php /**
 * 
 *
 * copyright
*/
</code></code>
Copy after login
Copy after login

上面如何在copyright前输出@,我按了/**回车后,它会自动补全注释,但再按@输不出来

如何输出想这样的块注释

<code><?php /**
 * Typecho Blog Platform
 *
 * @copyright  Copyright (c) 2008 Typecho team (http://www.typecho.org)
 * @license    GNU General Public License 2.0
 * @version    $Id: index.php 1153 2009-07-02 10:53:22Z magike.net $
 */
</code></code>
Copy after login
Copy after login

这篇文章说得很详细http://www.cnblogs.com/huangtailang/p/4499988.html

DocBlocker 有一个配置参数叫做 jsdocs_extra_tags 可以自定义标签的,比如你将如下配置复制进去

<code>{
    "jsdocs_extra_tags": [
        "Typecho Blog Platform",
        "@copyright ${1:[copyright]}",
        "@license ${1:[license]}",
        "@version ${1:[version]}"
    ]
}
</code>
Copy after login

你就可以像 Typecho 一样增加这些注释了。

对js文件起作用了,php文件怎么不起作用,没有自动补全

sublime DocBlocker 如何输出@author等

Related labels:
php
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template