Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Intellisense for csx in VisualStudio 2015

I am new in programming cs scripts (csx files).

But I have the problem that I do not have any intellisense. How can I get intellisense support in Visual Studio 2015 for it?

like image 959
Sascha Avatar asked Sep 02 '16 17:09

Sascha


People also ask

How do I enable IntelliSense in Visual Studio 2015?

I would try: In Visual Studio 2015, go to 'Tools | Options | Text Editor | C# | General both "Auto list members" and "Parameter information" should be checked. If that doesn't work I would try to disable ReSharper in VS2013 and try to get the normal intellisense working.

Why is IntelliSense not working CSS?

If you find IntelliSense has stopped working, the language service may not be running. Try restarting VS Code and this should solve the issue. If you are still missing IntelliSense features after installing a language extension, open an issue in the repository of the language extension.

What is CSS IntelliSense?

Windi CSS IntelliSense enhances the Windi development experience by providing Visual Studio Code users with advanced features such as autocomplete, syntax highlighting, code folding, and building.


1 Answers

Cs Script (CS file) and Script Cs (CSX file)

Cs-Script

It is a scripting engine that exists for quite a long time and use plain C# syntax (extension are hidden in comments). It also uses its own scripting engine.

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.

Script CS

... and CSI, Dotnet.Script and Nake

They are scripting engines based on Roslyn engine (and Mono REPL Engine for some of them). The syntax is extended:

  • No namespaces allowed
  • No main class, main method entry point not needed
  • Additional directives, like #load or #r to respectively load a script file and reference an assembly.
  • Common used 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.

like image 109
Fab Avatar answered Nov 15 '22 05:11

Fab