promptgarten ๐ŸŒฑ

Command reference ยท Cursor CLI

/line-numbers

Toggles line numbers in displayed code blocks.

/line-numbers toggles the display of line numbers in code blocks that the CLI shows in the chat history. The command doesn't need any arguments โ€“ calling it simply switches between on and off, for the current session. With line numbers turned on, you can precisely point to a specific line when reading diffs or code excerpts, for example when you want to tell the agent which spot to change. This is especially helpful with longer files or functions, where a vague description like "the line with the condition" would be too imprecise. For very short snippets, however, the extra column tends to create visual noise rather than value, which is why the default state can differ depending on your working style.

โœ… WHEN TO USE IT?

Point to specific lines

/line-numbers โ€” on, before saying 'check line 42'

Prepare references before a pairing conversation

/line-numbers on, before you discuss a function together in a call and want to name lines

โ›” WHEN NOT TO?

Only short code snippets without line references

For short snippets, line numbers tend to get in the way rather than help.

Better: leave /line-numbers off for a more compact display

SOURCES

MORE COMMANDS ยท Cursor CLI

/show-thinking/status-indicators/shell/about/setup-terminal/help/feedback/open/copy-request-id/copy-conversation-id/logout/quit

All commands ยท Cursor CLI โ†’

Share:๐•in๐Ÿ’ฌ