A Practical Guide to Using the AI Coding Tool Cursor Efficiently
Some tips for getting the most out of Cursor and coding more efficiently.
Translated by AI
The AI coding tool Cursor has been everywhere lately, and lots of my friends use it. For me it makes programming about ten times faster… Below is a very useful thread I came across online, shared here.

Cursor is a powerful AI coding tool designed to help developers write code faster and smarter. Here are some tips to get the most out of it and code more efficiently.
Source: https://x.com/shaoruu/status/1841548020174950467
General tips
1. Speed up coding with Cursor Tab
Pressing Tab in Cursor gives you smart completions and suggestions, so you finish tasks faster.
2. Learn the shortcuts
- Cmd+L: open chat
- Cmd+I: open Composer
- Cmd+K: edit inline
Knowing these makes working in Cursor much quicker.
3. Use @ to add context in any prompt box
Type @ in any prompt box to add context such as files, links or other resources, so the AI understands what you need more precisely.
4. Use the “+” button to add files to chat or Composer
Click “+” in chat or Composer to add files and give the AI more reference material.
5. Switch models with Cmd+/
Press Cmd+/ to switch quickly between AI models and pick the best one for the task.
6. Chat with the whole codebase using Cmd+Enter
In chat, press Cmd+Enter to ask about the entire codebase and get project-wide suggestions.
7. Drag, copy or paste images into chat
You can drag, copy or paste images into chat to discuss or reference them with the AI.
Advanced tips
1. In Composer, press “Save all” before “Accept all”
Click “Save all” first and “Accept all” afterwards. That way you can test the code before deciding whether to accept the changes.
2. Open a larger Composer with Cmd+Shift+I
Press Cmd+Shift+I for a bigger Composer window, which makes longer edits easier to read.
3. Press Alt+Enter in chat to send a message without the current file
If you don’t want the current file included, press Alt+Enter in chat.
4. Press Cmd+I in chat to pop the message into Composer
In chat, press Cmd+I to move the current message into Composer for further editing.
5. Use @web for up-to-date information
Type @web in chat or Composer to pull in current information from the web.
6. Use @git to reference your changes
Use @git to reference code changes, for example a specific commit, and ask the AI to review it.
7. Use @<link> to have the AI read a page first
Type @<link> and the AI will visit the link before answering, giving a more accurate reply.
8. Add external docs in Cursor settings
Add external documentation under Cursor Settings > Features, then reference it with @ in any prompt box.
9. Use / to reference open editors
The / command references the editors you currently have open, a quick way to add context.
10. Turn on suggested files for chat and Composer
With suggested files on, adding relevant files to chat or Composer is easier.
11. Trigger Composer from the small boxes in the interface
Many small boxes in Cursor’s interface can trigger Composer, for example to act on all search results at once.

▶ Follow for more articles on AIGC ↓
▶ For some “mental massage”, scan the code below to ask the assistant to add you to the group (please note your profession and why you want to join). (Mostly mental massage, occasionally AI talk 😂. For why it’s a mental massage group, see A Guide to Fighting Anxiety in the AI Era.)

▶ Private library (Knowledge Planet) benefits
● A 3-day no-questions-asked refund window; currently 40% off ↓↓
● Weekly updates of AI tools (2D/3D/video/audio generation and more), code, papers, design, Web3, parametric modelling, biology and art resources, plus a categorised archive of 3,500+ AIGC resources.
● Ask me questions and learn alongside 400+ AIGC practitioners.
