CoffeeScript Intellisense

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-23 17:27:29

问题


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.

Is there a plugin for VS that would allow this?

Thanks


回答1:


You can't have more than syntax checking/coloring with coffeescript (on any IDE) AFAIK.

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.

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.

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.

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




回答2:


Check this out: http://visualstudiogallery.msdn.microsoft.com/2b96d16a-c986-4501-8f97-8008f9db141a

Here is another: http://chirpy.codeplex.com/

I think this should do what you want.




回答3:


Webstorm and all of the JetBrains IDEs recently added some code completion and refactoring support. It knows what methods are in my own classes and will prompt to complete as I type. The red squiggly underline compile as you type is not quite there yet but it is coming. I bet Webstorm is the first to implement CS source map also. They have added so much in the last 11 months.



来源:https://stackoverflow.com/questions/13377398/coffeescript-intellisense

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!