CoffeeScript Intellisense [英] CoffeeScript Intellisense

查看:241
本文介绍了CoffeeScript Intellisense的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Visual Studio进行开发,我很习惯Intellisense。但是当写CoffeeScript时,你不会得到任何语法检查或Intellisense。

I use Visual Studio for development and I am quite used to Intellisense. But when writting CoffeeScript you don't really get any Syntax Checking or Intellisense.

有VS的插件可以允许这个吗?

Is there a plugin for VS that would allow this?

感谢

p>作为一种替代方法,你可以使用TypeScript获得完整的Visual Studio工具支持(并保持接近javascript),或者一些将代码转换为javascript的transcompilers,对于C#,有 Saltarelle 和CIL(.NET字节码,因此兼容任何.NET语言),我只是发现 JSIL ,但我不知道它的工作原理。

As an alternative, you can use TypeScript to get the full Visual Studio tooling support (and stay close to the javascript), or some transcompilers that transform code to javascript, for C# there is Saltarelle and for CIL (.NET bytecode, so compatible with any .NET language), I just found JSIL but I have no idea how well it works.

注意生成的代码look

Note than the generated code "look" can be important for debugging and using external libraries get a bit of work to be included in Typed languages.

对于js代码的可读性,我建议使用TypeScript(类似于coffeescript,更容易,但是更容易使用)少功率作为语言)。
Saltarelle代码看起来可读(没有尝试过很多),对于JSIL我不知道。

For js code readability I would recommand TypeScript (similar to coffeescript, even easier, but less powerfull as a language). Saltarelle code looks readable (didn't tried a lot), for JSIL I have no idea.

编译JS的语言列表: https://github.com/jashkenas/coffee -script / wiki / List of of-languages-that-c​​ompile-to-JS

A list of languages that compiles to JS: https://github.com/jashkenas/coffee-script/wiki/List-of-languages-that-compile-to-JS

这篇关于CoffeeScript Intellisense的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆