If you ask me what code editor to use in the AI era, I will undoubtedly answer you: Cursor Cursor Cursor!!!
With its intelligent tab completion capability, file-level code reading capability, and AI capability deeply integrated into the editor, coupled with the powerful Claude 3.5 Sonnet model, it quickly becomes a coding artifact for programmers. As the saying goes, with Cursor in hand, there are no bugs.
New users who register for Cursor for the first time will have a 14-day trial period for the Pro membership. If you want to continue using the Pro membership without any limitations, you need to register a new account with a new email on the official website and log in again in the software. Changing the account will not change the configuration inside the editor, so you can switch with confidence.
Update: If you have already registered a Cursor account, you can directly refer to Method 1, which is more convenient.
Installation#
Go to the official website here, click on Download
in the upper right corner to download and install.
If you have previously used VS Code, you will be prompted whether to import the VS configuration (themes, settings, plugins, etc.) during installation. It is recommended to import it, as it will make the transition almost seamless, as Cursor is based on the secondary development of VS Code.
In the input box, type 中文
(Chinese), click on Install "Cursor"
to install the command line tool, wait for the installation to complete, click OK
, and then click Continue
:
You will be asked whether to import the VS Code configuration. Import: click on Use Extensions
, Do not import: click on Start from Scratch
next to it (start from scratch):
Wait for the configuration to be imported...
If you see this popup, click on Continue with Default
:
Click on Continue
:
Skip the login and registration process for now, click on Skip for now
:
Click on Yes, skip login
:
When you enter the main interface, you will find that the interface is almost identical to VS, and the settings, plugins, and themes of VS are also synchronized. Here are a few things to note:
- Although the imported VS configuration will not be synchronized after installation, because they are two independent and different editors, it means that you can make individualized settings for Cursor without affecting VS.
- Using Cursor may consume slightly more CPU resources because it constantly indexes code for real-time prediction. It is speculated to be local inference,
which is different from the working mechanism of the.Github Coplit
plugin in VS Code
At this point, the installation and import of Cursor are complete🎉, and we will proceed with account registration and login.
Method 1 (Recommended)#
As reminded by netizens, there is a faster way to continue using the Pro trial. After the account expires, log in to the Account Settings page on the official website, expand Advanced
, and click on Delete Account
:
Enter delete
and click on the Delete
button. After clicking, the original account will be logged out, then you can register again with the original account on the official website, and the original account will become a new account, and the Pro trial and 500 credits will be restored.
Method 2 (Backup)#
If Method 1 fails, just repeat the following steps.
I suggest that you do not register excessively or in batches. Register a new account after each account expires, and cherish each account~~
Purchase Email#
First, go here to buy an Outlook email, the cost is negligible, 0.03 yuan:
Save the email account and password:
Login to Email#
Log in to the Outlook email here:
Copy and paste the purchased email account, click Next
:
Copy and paste the email password, click Sign in
:
After entering the main interface, switch to Junk Email
because the email from Cursor will be treated as junk mail and sent here:
Register Cursor#
Switch to Chinese Interface#
Before registering, switch the display language of the editor to Chinese. Open the editor, press the shortcut Ctrl + Shift + P
, type display language
, and click on Configure Display Language
:
Use the up and down arrows to switch to 中文(简体)
(Chinese Simplified), and press Enter
:
Click on Restart
to restart the editor, and then open it in Chinese:
Start Registration#
Open the Cursor editor, press the shortcut Ctrl + Shift + J
to open the settings panel, and click on Sign in
:
Click on Sign up
:
Enter the First name (any) and Last name (any), enter the purchased email account
, and click on Continue with email code
:
Click on Send email code
:
There may be a CAPTCHA (preferably not), click on the checkbox:
After a few seconds, the email will be sent to the Outlook email you just logged in to. Enter the verification code in the verification box:
Once the verification is complete, this page indicates that the registration is complete, and you can return to the editor:
Go back to the editor, and you will see that the account is automatically logged in and has a 14-day Pro trial.
After the account expires, press the shortcut Ctrl + Shift + J
in the editor to enter the Cursor account settings panel, click on Log out to log out, and then repeat the steps in Method 2 to register again.
At this point, the registration of the Cursor account is complete, and theoretically you can continue to use it in this way. The future operations will only take about 5 minutes, which is still very convenient.
Settings#
You need to make a simple setting to enable the AI capability. Press Ctrl + Shift + J
to enter the settings panel, switch to the Models tab, close the others, and only keep claude-3.5-sonnet
enabled:
Switch to the Features tab, change disabled
to enabled
:
Scroll down and set it according to the enabled status in the following image:
After the settings are complete, it is recommended to restart the editor.
Usage#
The following are the three most commonly used (combination) shortcuts:
Ctrl + L
: You can have a conversation with AI alone, or you can select a piece of code in the editor and add it to the AI conversation.
Ctrl + K
: Select a piece of code, directly enter the requirement or problem, and let AI help you improve a certain function or fix a bug. The green code block is the result generated by AI, and the red code block is the original code to be replaced. Press the shortcut or click Ctrl + Shift + Y
to confirm the replacement, and Ctrl + N
to reject the replacement.
Tab
: When coding, it will provide prediction capabilities based on the code context. Just keep pressing Tab to complete the code.