Here's the English translation:
Introduction to Cursor Interface
Tutorial Video
Overview
Cursor's user interface is clean and intuitive, especially familiar for those who have used VSCode. Cursor combines the familiar layout of traditional code editors with innovative AI assistance features. This guide will help you understand Cursor's main interface elements and common shortcuts, enabling you to use this powerful AI-driven code editor more efficiently.
Main Interface Elements
-
Menu Bar: Located at the top of the window, providing access to various functions and settings.
-
File Explorer: Located on the left, showing project structure and file list.
-
Editor Area: Central main area for writing and viewing code.
-
AI Chat Panel: Access through Command/Ctrl+L to open the chat panel.
-
Terminal: Click the arrow icon at the bottom, then select "Terminal" to open, used for executing commands and viewing output.
Common Shortcuts
Here are some of the most commonly used Cursor shortcuts. Note that shortcuts may vary by operating system. We'll list the corresponding shortcuts for Windows/Linux and macOS.
Basic Editing
Key Shortcuts:
The following three operations will be the most commonly used. Please remember them and try them in your own Cursor to experience their actual effects
-
Code Auto-completion
- Windows/Linux:
Tab
- macOS:
Tab
Provides AI code auto-completion suggestions: When we write code or text, Cursor actively predicts what we're about to input, and we can press
Tab
to accept the prediction - Windows/Linux:
-
In-file Chat
- Windows/Linux:
Ctrl+L
- macOS:
Cmd+L
Enables chat functionality for a single file. Cursor will answer questions based on this file.
- Windows/Linux:
-
Code Snippet Modification/Command Line Assistance
- Windows/Linux:
Ctrl+K
- macOS:
Cmd+K
Modify selected code snippets in files, can also be used in command line terminal.
- Windows/Linux:
File Operations
- Save File
- Windows/Linux:
Ctrl+S
- macOS:
Cmd+S
- Windows/Linux:
Editing Operations
-
Undo
- Windows/Linux:
Ctrl+Z
- macOS:
Cmd+Z
- Windows/Linux:
-
Redo
- Windows/Linux:
Ctrl+Y
orCtrl+Shift+Z
- macOS:
Cmd+Shift+Z
- Windows/Linux:
-
Copy
- Windows/Linux:
Ctrl+C
- macOS:
Cmd+C
- Windows/Linux:
-
Cut
- Windows/Linux:
Ctrl+X
- macOS:
Cmd+X
- Windows/Linux:
-
Paste
- Windows/Linux:
Ctrl+V
- macOS:
Cmd+V
- Windows/Linux:
Navigation
-
Go to File
- Windows/Linux:
Ctrl+P
- macOS:
Cmd+P
- Windows/Linux:
-
Go to Line
- Windows/Linux:
Ctrl+G
- macOS:
Cmd+G
- Windows/Linux:
-
Find
- Windows/Linux:
Ctrl+Shift+F
- macOS:
Cmd+Shift+F
- Windows/Linux:
-
Replace
- Windows/Linux:
Ctrl+R
- macOS:
Cmd+R
- Windows/Linux:
Customizing Shortcuts
Cursor allows users to customize shortcuts to suit personal preferences:
- Open Settings (usually through
Ctrl+,
orCmd+,
) - Navigate to the "Keyboard Shortcuts" section
- Find the command you want to modify and set a new shortcut
Conclusion
Familiarity with Cursor's interface and these common shortcuts will greatly improve your coding efficiency. As you delve deeper, you'll discover that Cursor offers more powerful features and quick operations. It's recommended to frequently check the official documentation to learn about the latest feature updates and shortcut changes. Remember, practice is the best way to master these shortcuts - with frequent use, you'll soon be able to skillfully use Cursor to improve programming efficiency.
如果文章对你有帮助👍
请我喝杯咖啡 ☕️
加入社群
欢迎加入我的社群,加入社群你将获得:
- 一次与圈主的语音一对一疑惑解答
- 面向无编程基础的Cursor基础教程
- 面向有基础的Cursor进阶付费教程和实操技巧
- Cursor和各类AI相关资讯