0x5E

0x5E

My place for thoughty-like thoughts.
twitter
github

Unlimited Refill Cursor

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.

image

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:

image

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):

image

Wait for the configuration to be imported...

image

If you see this popup, click on Continue with Default:

image

Click on Continue:

image

Skip the login and registration process for now, click on Skip for now:

Snipaste_2024-08-25_11-40-11

Click on Yes, skip login:

Snipaste_2024-08-25_11-40-25

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.

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:

image

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.

image

image

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:

Snipaste_2024-08-25_13-14-48

Snipaste_2024-08-25_13-15-12

Save the email account and password:

Snipaste_2024-08-25_13-17-03

Login to Email#

Log in to the Outlook email here:

Snipaste_2024-08-25_13-26-35

Copy and paste the purchased email account, click Next:

Snipaste_2024-08-25_13-27-11

Copy and paste the email password, click Sign in:

Snipaste_2024-08-25_13-27-29

Snipaste_2024-08-25_13-27-47

Snipaste_2024-08-25_13-28-27

After entering the main interface, switch to Junk Email because the email from Cursor will be treated as junk mail and sent here:

Snipaste_2024-08-25_13-28-45

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:

Snipaste_2024-08-25_13-37-31

Use the up and down arrows to switch to 中文(简体) (Chinese Simplified), and press Enter:

Snipaste_2024-08-25_13-37-49

Click on Restart to restart the editor, and then open it in Chinese:

Snipaste_2024-08-25_13-38-09

Start Registration#

Open the Cursor editor, press the shortcut Ctrl + Shift + J to open the settings panel, and click on Sign in:

Snipaste_2024-08-25_13-49-54

Click on Sign up:

Snipaste_2024-08-25_13-50-22

Enter the First name (any) and Last name (any), enter the purchased email account, and click on Continue with email code:

Snipaste_2024-08-25_13-50-53

Click on Send email code:

Snipaste_2024-08-25_13-51-13

There may be a CAPTCHA (preferably not), click on the checkbox:

Snipaste_2024-08-25_13-51-52

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:

Snipaste_2024-08-25_13-51-40

Once the verification is complete, this page indicates that the registration is complete, and you can return to the editor:

Snipaste_2024-08-25_13-52-27

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.

Snipaste_2024-08-25_13-53-06

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:

Snipaste_2024-08-25_14-23-39

Switch to the Features tab, change disabled to enabled:

Snipaste_2024-08-25_14-24-08

Scroll down and set it according to the enabled status in the following image:

Snipaste_2024-08-25_14-27-45

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.

Snipaste_2024-08-25_15-39-22

Snipaste_2024-08-25_15-40-28

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.

Snipaste_2024-08-25_15-50-45

Tab: When coding, it will provide prediction capabilities based on the code context. Just keep pressing Tab to complete the code.

Snipaste_2024-08-25_15-43-20

Snipaste_2024-08-25_15-43-07

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.