【问题标题】:Generate JavaScript Intellisense Documentation Comments with CoffeScript使用 CoffeeScript 生成 JavaScript Intellisense 文档注释
【发布时间】:2012-07-12 19:33:04
【问题描述】:

我正在使用 CoffeeScript,我想提供 Visual Studio 2010 JavaScript Intellisense 提示,例如 Jquery。 cmets 的格式必须为

///<summary>Description of the Function</summary>

我能看到生成 cmets 的唯一方法是使用 ###,但随后注释是样式化的

/* 
   <summary>Description of the Function</summary> 
*/ 

这在 Studio 中不起作用。有没有办法用 CoffeeScript 做到这一点?

【问题讨论】:

    标签: javascript visual-studio-2010 coffeescript xml-comments


    【解决方案1】:

    您可以使用embedding javascript 的 CoffeeScript 功能,使用反引号:

    `///<summary>Description of the Function</summary>`
    

    【讨论】:

    • Zing! 对不起,我想我不能帮你。跳过 CoffeeLint 并在生成的 javascript 上运行 JSLint 可能是一个想法?
    猜你喜欢
    • 2013-12-25
    • 2011-12-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2010-11-01
    • 2012-05-30
    • 2022-12-19
    相关资源
    最近更新 更多