Add the following to the config file 'runner': To get C# highlighting in your scripts you'd also have to add an additional package apm install language-csharp You would either go through the Atom Package Manager GUI, which is found in the Settings tab ( Ctrl-,) or take it from the command line like this apm install atom-runner Firstly, you need to install the Atom Runner. It is a bit more cumbersome to get scriptcs set up in Atom. When installation is done, you can find the scriptcs REPL in Tools -> SublimeREPL -> ScriptCS. Find SublimeREPL in the list and install it. Again, open the Sublime Package Manager, using Ctrl+Shift+P, type install and chose Package Control: Install Package. This REPL is highly configurable, and can run an interpreter inside Sublime, including scriptcs. SublimeREPL is a Sublime Text package which adds a REPL inside Sublime. I neat feature that Sublime Text has and which, not to my knowledge, Atom does not have is SublimeRepl or rather an alternative. csx-files will now have text highlighting and you can execute your scripts by pressing Ctrl+B. The scriptcs package will now be installed. Once ready, a dialog will list all available packages. When you have installed the Sublime Package Manager, open it by using the Ctrl+Shift+P, type install and choose Package Control: Install Package. So open the Sublime Text console, using Ctrl+ยด, and run this Powershell script. The Sublime Package Manager is in it self an addon. This is done using the great Sublime Package Manager. To setup using scriptcs in Sublime Text, you need to install the scriptcs plugin. Sublime Text has been my favorite text editor for a while, and I use every occasion I get to give it a shout, and hopefully I can convince more people to use it. In this post I'll show you how to setup Sublime Text and Atom to use scriptcs for script execution. Then it is good that there are other, still lightweight, options out there. But sometimes, when writing larger scripts its just not a suitable tool. I really love the REPL in scriptcs, and feel comfortable using it.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |