Question
Question 8: What is the difference between Prettier's 'format' and 'compact' modes?
Asked by: USER2983
84 Viewed
84 Answers
Answer (84)
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.