Table rendering in response

Could be useful when “chatting” with codebase.

real world example:

7 Likes

Put this into your rules for now:

## Formatting rules - This is about how you should format your responses.

# Be aware that the cursor chat you are in cant render markdown correctly.
# IMPORTANT: Tables need to be rendered in plain text and not markdown

Exmaple rendering of a table:

When rendering tables, do not use markdown table syntax or plain text alone. Instead, place the entire table inside a code/text block (using triple backticks). This ensures the table formatting is preserved and readable in the chat interface.
Example:

+----+------------+-----------+
| ID | Name       | Role      |
+----+------------+-----------+
| 1  | Alice      | Admin     |
| 2  | Bob        | User      |
| 3  | Charlie    | Moderator |
+----+------------+-----------+

3 Likes

Fantastic, thank you

Large tables with many columns quickly lose alignment.
I tried providing a counter example in the rule but couldn’t make it work.
Clearly it’s difficult for the models to count characters and spaces and make text tables look good.

I see no alternative other than improving the panel to show markdown tables correctly.

This is called a ASCII table (mysql) style