You're looking for a combination of scriptcs, scriptcs-sublime and SublimeREPL. They will let you write and execute C# code inside Sublime Text easily.
Steps to install:
Install chocolatey (like apt-get for Windows) by running the following PowerShell command:
@powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%systemdrive%\chocolatey\bin
Install scriptcs by running the following command in your CLI
cinst scriptcs
Install Sublime Package Control (if you don't have it already). You can find the installation guide here.
Go to
Menu > Tools > Command Palette
and typeInstall Package
, then find and installscriptcs
SublimeREPL
Restart Sublime
- Go to
Menu > Tools > Command Palette
and selectSublimeREPL: ScriptCS
.
You should now be running the scriptcs REPL inside Sublime Text :)