A quick C# (compile and execute on the fly) plugin for ok
:
https://github.com/dedbeef/ok
- .NET 4.8
- Windows 7/10/11
- Some way to clone the repo, e.g.
git
orVisual Studio
. - VSCode (and highly recommend the default C# extension)
- Already have the
ok
repo cloned (https://github.com/dedbeef/ok)
default repo folder - Usually C:\Users\Username\source\repos\
- Clone (or fork then clone) this repo using Visual Studio to the default repo folder.
https://github.com/dedbeef/code.cs.git
- Build it if it does not already have binaries included.
ok
will automatically find these cloned repos and the binaries to use
- Open a command prompt or powershell window anywhere.
- Run the command with
ok
- e.g.
ok code.cs edit MyScript
- e.g.
ok code.cs run MyScript
- e.g.
ok code.cs list
- Type
ok code.cs
to see the syntax for more info.
- e.g.