Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Intellij print all classes as PDF

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.

like image 954
DavidVV Avatar asked Aug 31 '16 18:08

DavidVV


People also ask

How do I see all classes in IntelliJ?

By default, IntelliJ IDEA shows all classes, methods, and other elements of the current file. To toggle the elements you want to show, click the corresponding buttons on the Structure tool window toolbar. to show class fields. to have protected class members shown in the tree.

How do I save code in PDF?

You can save changes made in to a PDF document opened in Master PDF Editor using one of the following ways: Open the File menu and select Save or press the Ctrl+S hotkey. This will save the modified document under the same file name. Open the File menu and select Save As or press the Ctrl+Shift+S hotkey.

How do I view Javadoc in IntelliJ?

View Javadocs in the editorHover the mouse over the necessary symbol in the editor. Place the caret at the symbol and press Ctrl+Q (View | Quick Documentation). Press Ctrl+Q again to open this documentation in the Documentation tool window.


1 Answers

  1. 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.
  2. Click File -> Print.
  3. In the menu that pops up select All files in directory option. This help page explains all the options in this menu. Click Print.
  4. 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
like image 176
0x60 Avatar answered Sep 19 '22 11:09

0x60