This repo just for code storage of leetcode and other interesting patterns.
This repo using CSX by default. Following are steps to setup VS Code with runtime.
-
Download ScriptCs from http://scriptcs.net/. Either binary or source code is ok, you can load source code then build it by yourself in visual studio 2017.
-
Install scriptcsRunner extension in VS code.
-
Set the scriptcsPath in VS Code setting, this field should be the location of scriptcs.exe. Or you can add this location to
Path
ofsystem environment variables
:{ //other settings "scriptcsRunner.scriptcsPath": "scriptcs" }
-
Create file with name like app.csx then VS Code can leverage OmniSharp extension to provide the intellisense support just like coding in visual studio.
-
Run the code by the command of
Execute with scriptcs
or the shortcutCtrl + Shift + R
- Locate the script file which you want to debug
- Bring up terminal window in the same directory, then run
scriptcs
to launchscriptcs
asRepl
mode - In
scriptcs
, type command:openvs "test.csx"
to launch VS and the target script. Then you will get the same experience of VS to debug script file.