Recently, I experienced a cursor, which automatically generates code tools and integrates the recently popular ChatGpt. Currently, the better code generation tools are github copilot and cursor , but github copilot requires payment or a long waitlist, so it is currently better the cursor
The official website is as follows:
configuration
Configure the languages that you often use, such as ts, html, css, etc.
operate
Currently, there are only two functions, as follows:
ctrl+k: generate code
Describe the code function that needs to be generated, and it will automatically generate it for you after pressing Enter, such as generating a Fibonacci sequence function
If you want to do some editing operations on this code, such as adding comments, just select the code and ctrl+k
press Enter again, as follows:
Accept All
After generation, two functions are provided Reject All
, similar to the function of [select all/unselect all]
Accept All
: add allReject All
: delete all
ctrl+l: intelligent dialogue
The function is similar to gpt-4. If you ask him your doubts, he will give you a solution without going to Baidu for the answer, as follows:
When you don't understand this code, you can also select the code and ask him to implement logic or code structure, etc., as follows:
Note: As can be seen from the above dialogue, the cursor is not sensitive to language, so if you want to generate a dialogue in Chinese, it is best to add [Please use Chinese] similar to this kind of words
use
The function of cursor is currently a simple and comprehensive coding tool for programmers. It supports multiple languages, such as js, ts, python, rust, go, java and other common programming languages on the market. He can automatically generate code according to your description, and you can accept other people's code to help you understand and refactor the code, and can test bugs, verify formats, etc.