【问题标题】:How to insert TODO comment in React JSX file如何在 React JSX 文件中插入 TODO 注释
【发布时间】:2018-05-02 11:08:43
【问题描述】:

我想在 React JSX 文件中插入 TODO cmets,一个常规的 JavaScript cmets 被解析为文本并呈现在我的组件 PhpStorm 中,在 TODO 工具窗口中列出它们

// TODO any comments ... 
or 
/* TODO an other todo task*/ 

如果我使用这样的 JSX 注释

{/* TODO an other todo task*/}

PhpStorm 忽略 TODO 并将其视为简单注释,有一种方法可以在 React JSX 文件中插入带有 PhpStorm 的 TODO,或者缺少对 react 的 PhpStorm 支持,需要增强。

【问题讨论】:

    标签: phpstorm jsx todo


    【解决方案1】:
    use the below comment it worked for me writing todo's
    /**
       @todo: right your todo comment here
    **/
    

    【讨论】:

      【解决方案2】:

      类似WEB-23401,请关注更新

      【讨论】:

        猜你喜欢
        • 2017-03-15
        • 2013-05-06
        • 2014-11-08
        • 2016-11-23
        • 1970-01-01
        • 1970-01-01
        • 2015-10-30
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多