This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Code Composer Studio Print Options

Hi All,

I've just started learning Code Composer Studio and the EK-LM3S9D96. Exciting and daunting at the same time.

I thought the best way to learn would be to print out some examples and analyse them. I'm happy with 10 point font on screen, but when it comes to printing it's way too large. A better size would be 8 point. Totally legible and more code on the one page. I've learnt how to change font size so I can get by by setting the font size to 10 when I'm coding and 8 point when I'm printing and then back to 10 point. Pretty cumbersome.

I also find that the page margins are too large. There's 25 mm on the left, 15 mm on the right and a whopping 25 mm on top. This chews into the page payload.

So, my questions are:

1) Is it possible to set a different font type and size for printing versus on screen display?

2) Is it possible to set the print margins?

Thanks and Regards, Vito

  • Hi,

    1) I couldn't find a way to do this. The closest but not very convenient way to do this is at the link below:

    http://stackoverflow.com/questions/7634906/how-do-i-change-the-font-size-when-printing-from-eclipse

    (disregard the comment about being fixed; this was only applicable to linux versions of Eclipse)

    2) No.

    I personally use another editor (like PsPad or Notepad++) to do source-code printing... They also have syntax highlighting and have additional printing capabilities.

    Regards,

    Rafael

     

  • Thanks for your reply Rafael. It's disappointing that Code Compose Studio, or more generally, Eclipse, is so limiting when it comes to printing. That would have to be a core function.

    It's also interesting to hear that you use a different editor. An IDE is basicaly an editor, compiler and debugger. It surprises me that the world's most popular microcontroller IDE (Eclipse) is so bad at one of its three primary functions that a substitute needs to be used!

  • Vito,

    I understand your disappointment; just clarifying, I only use an external editor when I need to print something, as I very much appreciate the features of the built-in editor of Eclipse.

    In my case I can live with the print limitations as I don't do this very often... But I wonder if there is a plugin that allows doing this more professionally. If you go to the Eclipse Marketplace (menu Help --> Eclipse Marketplace) you can do a search for plugins and add-ons.

    Regards,

    Rafael

  • I've worked out a fairly convenient way of having 10 point Courier New on-screen and printing at ~7 point Courier New. The method also results in smaller margins so more information is presented per page. When printing normally, for an A4 size page, it is possible to get 80 characters across and 65 lines. With the new method's smaller font size and narrower margins it is possible to get 128 characters across and 93 lines. This is great since I hate using more than one line for an expression and like some of my comments beside my code. (I'm aiming to use a maximum line length of 120 characters.) As a bonus, the text is slightly bolder than if the font was changed to 7 point and printed out, which is particularly useful for seeing blue text amongst black text.

    Method

    1) Print to PDF using an A3 page size
    2) Print the resultant PDF on an A4 page selecting "Fit to Printable Area"

    No having to navigate multiple menus to change to 7 point, print then changing back to 10 point. With the added bonus of smaller margins and slightly bolder, therefore more legible, text.

    Still would like to see some print options in Code Composer Studio / Eclipse.

     Regards, Vito