IDE function: prettyprint
An IDE feature that shows code in a clear layout, using colours for keywords and indentation for blocks, so it is easy to read. It changes only the display, not the code.
Understanding IDE function: prettyprint in IGCSE Computer Science Paper 1
What it does: The indented print line is inside the for loop. Automatic indentation makes this clear at a glance. The colours and layout are only the display. The program text and its output stay exactly the same. Prettyprint is about how the code looks on screen. Translating code is the job of the translator, not prettyprint. Colour-coding keywords, strings and comments makes each part of the code easy to tell apart. A clear layout helps programmers read code and notice mistakes. It does not replace the translator. False. Prettyprint only affects what is displayed in the IDE. The saved code is not changed by the colours.
Common mistakes: The comment is missing its # symbol, so it is treated as code and will not be shown in the comment colour. It should be '# Prettyprint colours comments'. The closing quote is missing, so prettyprint would colour the rest of the line as one string. It should be print("Hello " + name).
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 450–463) and word search (Modules 440–463).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
prettyprintFill in the Blanks
Spot the Error
Student with a class code? Join your class →