我是编程cs脚本(csx文件)的新手。
但我的问题是我没有任何智能感知。如何在 Visual Studio 2015 中获得智能感知支持?
There is an Intellisense extension for CS Script. However it states that it's for Visual Studio up to 2013 version, so maybe it is not compatible with 2015 version.
They are scripting engines based on Roslyn engine (and Mono REPL Engine for some of them). The syntax is extended:
using
are not needed (like System
or the like)Obviously providing intellisense for such extended syntax is more complex and Support by Visual Studio 2015 Update 3 is not complete.
But it is available in Visual Studio Code through Omnisharp.
Note for Resharper Users:
You have to disable intellisense of Resharper for all Cs files (as R# see them as C# but cannot handle intellisense for them) and of course specify *.csx files as skipped by code inspection.