I have to quit the 2.0.0 version and open an old version to be able to print an .ino file.
Why was the Print function taken out? going backwards here... A new version should improve
upon the previous...
The Print function has not been taken out, rather it has not been put in yet
Hi @jacv2. The Arduino IDE developers are tracking the request for a "Print" capability here:
If you have a GitHub account, you can subscribe to that issue to get notifications of any new developments related to this subject.
Whilst my post #2 was tongue in cheek, I am surprised that the facility to print is not already present as surely it is an inherent part of any text editor
I'm not so sure. Consider that the world's most popular development editor, VS Code, does not have this capability. That despite the availability of the vast resources of Microsoft and a huge community contributor base:
What I take from that is that VS Code too has functionality missing that should be there
Whilst I take the point that most users would not actually print the code onto paper, it is very handy to be able to "print" a PDF document to document a project
VS CODE does not have a print function but Visual Studio does. Sometimes I Copy and paste to a new file in Visual Studio for it gives me the code with line numbers... 1,2,3...99 while the old Arduino IDE just gives me the code with a rather big font that I cannot change. When I am developing a program and making progress, I like to print a copy to review in other places... than the working desk.
I'm a teacher, and my students after writing their code print to PDF so that they can submit their work. I know that they may use Notepad++ or Code Writer to turn in their work. It makes more steps for the students and additional training. Until you fix this we will continue to use an older version.
Why would they need to do that? Why shouldn't they simply submit the sketch produced by Arduino IDE? That seems much more simple for the students and for the teacher as well.
Maybe you should consider adjusting your process instead.
The only appropriate way to share an Arduino sketch in a digital format is in the native sketch format. A PDF can not be effectively version controlled. It can not be opened directly in Arduino IDE, and errors (e.g., changing the filenames in a multi-file sketch) may occur during the copy/paste operation required to transfer code from a PDF to the IDE.
So why should you teach your students to use an inappropriate format to share their sketches with you?
Printing into a PDF is very important because in America we use a tool like canvas. Canvas will automatically pull up a PDF document. It is unable to pull up the Arduino file. The student's code is small enough that I can tell if the code is right by reading the PDF. The time it would take to download the Arduino file and bring it up, I would be working well into the night. If you are no longer going to support the education market, we must go to another piece of hardware like Raspberry Pi.
Which file types can it open ?
The program will pull up PDF, word, and text files.
Does Canvas use the file extension to determine the file type ?
.ino file are just text files with a different extension so can Canvas open them is they are renamed or copied to a different extension ?
Crikey. I'm sure a good programmer could knock up a 'print code' routine in a morning.
I can't believe ptillisch is trying to defend the absence!
It is NOT "archaic to want to print code"
Walks away, shaking my head at this stupid exclusion.
Feel free to do so and submit a pull request to add the capability to this free open source software project:
You might be interested in this information a forum user shared about how to add a print capability to Arduino IDE 2.x via an existing 3rd party extension:
Thanks
I'll look into that
Paraphrasing your earlier post
Crikey. I'm sure a good programmer could knock up a change to Canvas to allow it to load text files even if the their extension is not .txt
For now, why not just click somewhere on the .ino screen and do (for PC):
Control A - to select all,
Control C - to copy,
Open Notepad and click on screen,
Control V - to paste and then open print window and print.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.