Intellij print all classes as PDF
20,334
- Select the directory that contains all of your source code. If your code is scattered around different directories you will have to either print it in batches or drop all the files you want to print into one temporary folder and select it.
- Click
File
->Print
. - In the menu that pops up select
All files in directory
option. This help page explains all the options in this menu. ClickPrint
. - To save all the code as PDF instead of your physical printer select a virtual PDF printer. Windows 10 has "Microsoft Print to PDF" installed by default. If you don't have one, you can pick one for your OS on this Wikipedia page
Author by
DavidVV
Updated on September 01, 2020Comments
-
DavidVV almost 4 years
My professor wants to get the code of my Library Management project not only as .java files but also as a one PDF file. Is there any way to do that in Intellij? I have a lot of classes, and I would like to avoid having to click and print every one of them separately.
Is there any workaround? I am using Mac OS. If I select the folder where the code is, the print button shows greyed out.
-
DavidVV almost 8 yearsI am using Mac OS. If I select the folder where the code is, the print button shows greyed out. I can click on it.
-
0x60 almost 8 years@DavidVV Do you have a printer? Maybe it's greyed out because there are no printers on your system. If that's the case installing a PDF printer for Mac like this one will help.
-
Morfic almost 8 years@DavidVV what if you simply select the
Print
option for a single file and then then choseAll files in directory...
&Include subdirectories
? -
KingxMe about 4 yearsOn Mac as of IntelliJ IDEA CE 2020.1.1, "Open in Preview" doesn't work but "Save as PDF" does.