赞
踩
首先打开 Cursor 的官网:https://www.cursor.so/
Cursor 支持 Windows、Mac、Linux 三大平台,我们直接下载 Windows 版本即可。
Cursor 安装的过程中,会引导你进行初始化设置,你即可以选择 VIM 或者 Emacs 的操作习惯,也可以保持默认设置,另外它还支持绑定 Copilot。
Cursor 的开发工具是基于vscode开发工具修改,集成了gpt4的codex模型,以下是主题修改的对比图。
vscode
Cursor
登录官网生成:https://platform.openai.com/account/api-keys
ctrl + shit + x
ctrl + shit + p ->configure display language
汉化后效果(先玩中文,熟悉之后可以切为英文)
根据项目情况选择性安装:SpringBoot、Maven
安装了Git Project Manager,其他的几个git插件也自动安装了
Ctrl+K:负责代码生成与编辑;
Ctrl+L:负责代码理解和注释。
不贴图了,懂的都懂。
使用 ctrl+k输入:帮我写个爬虫,爬取https://blog.csdn.net/qiushily2030/article/details/130004414网址中模型介绍之后的内容,并打印出来
import java.io.IOException; import org.jsoup.Jsoup; import org.jsoup.nodes.Document; import org.jsoup.nodes.Element; import org.jsoup.select.Elements; public class SnakeGame { public static void main(String[] args) throws IOException { String url = "https://blog.csdn.net/qiushily2030/article/details/130004414"; Document doc = Jsoup.connect(url).get(); Element modelIntro = doc.selectFirst("#article_content > div > div > p:nth-child(5)"); Elements contents = modelIntro.nextElementSiblings(); for (Element content : contents) { System.out.println(content.text()); } } }
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。