Transpiles, evaluates and prints code. Provides immediate feedback for code execution within Sublime Text.
- Total 3K
- Win 2K
- OS X 722
- Linux 418
|Aug 18||Aug 17||Aug 16||Aug 15||Aug 14||Aug 13||Aug 12||Aug 11||Aug 10||Aug 9||Aug 8||Aug 7||Aug 6||Aug 5||Aug 4||Aug 3||Aug 2||Aug 1||Jul 31||Jul 30||Jul 29||Jul 28||Jul 27||Jul 26||Jul 25||Jul 24||Jul 23||Jul 22||Jul 21||Jul 20||Jul 19||Jul 18||Jul 17||Jul 16||Jul 15||Jul 14||Jul 13||Jul 12||Jul 11||Jul 10||Jul 9||Jul 8||Jul 7||Jul 6||Jul 5||Jul 4|
EvalPrinter is a Sublime Text 2/3 Plugin which transpiles, evaluates and prints code. This allows rapid testing of code snippets without leaving your code editor. To see which languages are supported, see the appropriate section.
You are writing some code and you are unsure if it does what you want?
String.prototype.slice the index of the last character?
Or is it the amount of characters to slice? Does Python's
reverse-method for lists return a reversed copy or does it modify the instance?
Do you need these braces in your CoffeeScript code or are they optional?
Don't look this up in the documention! Don't open a shell, in which you replicate the code you already wrote! Stay in Sublime and just evaluate/transpile your code. With EvalPrinter.
Unlike a REPL, EvalPrinter does not only work with simple expressions but with entire blocks of code. Because you don't have to switch to another program, context switches are reduced und Sublime's usual text editing capabilities can be used, as well.
Additionally, the live session mode provides true immediate feedback which is completely missing in a REPL. The same applies for showing the results of transpilation processes.
You can trigger the
eval_print command to transpile/evaluate the current selection (or the current line if nothing is selected).
The default keybinding is Shift + Alt + Enter.
By default, the output will yield the result of the last expression.
Additional output can be achieved via the standard logging methods of the current programming language (e.g.
Another possibility is to enter a “live session”, in which the code will be transpiled/evaluated after each keystroke. The immediate feedback makes it especially useful for tweaking code until it's perfect.
The command is called
eval_print_enter_live_session and the default keybinding is Ctrl/Cmd + Shift + Alt + Enter. Invoke it again to exit the mode.
For languages which will be transpiled (e.g. CoffeeScript), the output will also include the result of the transpilation process:
Currently, the following languages are supported:
Feel free to open issues or submit pull requests to add support for other languages.
Either use Package Control and search for
EvalPrinter or clone this repository into Sublime Text “Packages” directory.
MIT © Philipp Otto 2014