Skip to content

Instantly share code, notes, and snippets.

@filipw
Last active August 29, 2015 14:20
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save filipw/a6204fa1452de1d4f61b to your computer and use it in GitHub Desktop.
Save filipw/a6204fa1452de1d4f61b to your computer and use it in GitHub Desktop.
  1. Update VS Code settings to treat .csx as .cs

     win: C:\Users\username\AppData\Local\Code\app-0.1.0\resources\app\plugins\vs.language.csharp\ticino.plugin.json
     os x: \AppData\Local\Code\app-0.1.0\resources\app\client\vs\languages\vs.language.csharp\ticino.plugin.json
    

There is an extensions array there tht you should modify.

  1. Get omnisharp-roslyn and build

     git clone https://github.com/OmniSharp/omnisharp-roslyn.git
     build.sh / build.cmd
    
  2. Create environment variable OMNISHARP with value:

     win: <path-to-omnisharp-roslyn>\artifacs\build\omnisharp\omnisharp.cmd
     os x: <path-to-omnisharp-roslyn>\artifacs\build\omnisharp\omnisharp
    
  3. Copy project.json from <path-to-omnisharp-roslyn>\src\Omnisharp to the folder where you have your scripts. This is currently necessary to force VS Code to load up omnisharp. You can now open the folder with scripts in VS Code and you are good to go.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment