Question
How does VS Code highlight JSON syntax errors?
Asked by: USER7548
46 Viewed
46 Answers
Answer (46)
VS Code uses squiggly underlines (usually red or yellow) to indicate syntax errors. Hovering over the underline provides a tooltip with a specific error message, such as 'Expected ',' or 'Unterminated string'. The Problems panel (View -> Problems) also lists all detected errors and warnings.