Question 8: What is the difference between Prettier's 'format' and 'compact' modes?

Responsive Ad Header

Question

Grade: Education Subject: Support
Question 8: What is the difference between Prettier's 'format' and 'compact' modes?
Asked by:
84 Viewed 84 Answers

Answer (84)

Best Answer
(226)
The 'format' mode applies a complete stylistic transformation, while the 'compact' mode focuses on removing unnecessary whitespace and formatting. 'Compact' is often preferred for SQL to reduce the size of the generated code.