Here's why – Sublime Text 3 brings some major benefits compared to version 2: Most plugins have caught up and are built on top of ST3 now. If you check in Package Control, there are more ST3 packages today than there are ST2 packages. Sublime Text 2 development has stopped while Sublime Text 3 is in active development.
There is also the Simple Print package, which uses enscript to do the actual printing.
Similar to kenorb's answer, open the palette (ctrl/cmd+shift+p), "Install package", "Simple Print Function"
you MUST install enscript and here is how:
https://github.com/svenax/SublimePrint
This isn't supported yet. You can use plugins to export the text into HTML or RTF first, and then you can print it out, if you want.
Here is for example the SublimeHighlight plugin which you can use for exporting.
TL;DR Use Cmd/Ctrl+Shift+P
then Package Control: Install Package
, then Print to HTML
and install it. Use Alt+Shift+P
to print.
My favorite tool for printing from Sublime Text is Print to HTML package. You can "print" a selection or a whole file - via the web browser.
This opens your browser print dialog (Chrome for me) with the selected text neatly in the print dialog window and syntax highlighting intact. There you can choose a printer or export to PDF, and print.
Install the "Print to HTML" package using the package manager.
Ctrl + Shift + P
=> Gives a list of commands.install
"Package Control: Install Package
"print to
"Print to HTML
". Select that, and it is being installed.Alt+Shift+P
UPDATE 2016: Somewhere between July 2015 and January 2016 the printing feature request that I wrote about in 2014 was removed. The original answer is below, with the relevant links changed to the latest working versions in the Web Archive:
Printing in Sublime Text is a feature that has been requested for about 4 years (as of 2014), with 1600+ supporting votes and 160+ comments in the discussion below. For something around 6000 feature requests this is in the top 5.
See the original, still open, feature request:
Judging from the feature request (still open with no official answer) it seems unlikely that printing will ever get implemented in version 3 (as others have suggested) or in any version at all.
The discussion below this feature request may give some insight on why printing is not supported and whether or not it has a chance to get supported in the future.
Maybe if more people vote or comment it will change in the future. (See Update 2016 below for an up-to-date list of feature requests)
Some workarounds were suggested, the most popular advices were to use some other editor for printing (eg. Brackets, Atom, gedit, Notepad++) or to use some 3rd party plugins that reportedly don't work well or at all.
In general there is a strong opposition to adding printing as a native feature of Sublime Text which for such a universal functionality among text editors seems surprising, but may nevertheless shed some light on this issue.
Meanwhile, there are many free editors that can print (in fact I cannot think of a single one that couldn't) so it is easy to use some other editor whenever a need for printing arises.
Since the feature request described above was removed (please comment if anyone knows why) here is an up-to-date list of some other places to find more info about printing in Sublime Text:
Since the original feature request #25170 was removed, you should vote and comment in the other feature requests about printing instead.
Also see related printing forum topic: Printing from sublime
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With