skr*_*ile 8 javascript visual-studio coffeescript
刚开始使用Web Essentials,并喜欢它支持.coffee文件.但问题很严重:在Visual Studio中,如果将以下引用添加到.js文件的顶部,则Visual Studio将包含引用文件中项目的intellisense:
/// <reference path="../../js/knockout-3.1.js" />
Run Code Online (Sandbox Code Playgroud)
因此,在编写我的代码时,我可以键入类似的内容ko.,intellisense向我展示了淘汰所提供的所有功能.
但是,.coffee文件中不允许使用上述XML引用,实际上它们不会被编译.我可以将以下内容放在.coffee文件中:
# @reference ../../js/knockout-3.1.js
Run Code Online (Sandbox Code Playgroud)
这将编译,但我在Visual Studio中丢失了intellisense.
如何"包含"其他.js文件作为参考并在.coffee文件中触发intellisense?
小智 1
目前不支持此功能。
请参阅此堆栈溢出问题: CoffeeScript Intellisense
另请参阅网络要点中的此建议: https://webessentials.uservoice.com/forums/140520-general/suggestions/3782958-coffeescript-intellisense
| 归档时间: |
|
| 查看次数: |
368 次 |
| 最近记录: |