0
点赞
收藏
分享

微信扫一扫

使用 Cursor 帮你智能写代码

你的益达233 2023-04-03 阅读 110

前言

Cursor 是一款用于人工智能编程的编辑器,现在 Cursor 可以帮助你做一些事情。。。

官方链接如下:

https://www.cursor.so/

使用 Cursor 帮你智能写代码_AI

官方介绍如下:

  • Write: Generate 10-100 lines of code with an AI that's smarter than Copilot
  • Diff: Ask the AI to edit a block of code, see only proposed changes
  • Chat: ChatGPT-style interface that understands your current file
  • And more: ask to fix lint errors, generate tests/comments on hover, etc.

Roadmap

Long term, our plan is to build Cursor into the world's most productive development environment. Using LLMs, we want to do things like:

  • "Heal" your repository when you're halfway through a refactor
  • Allow you to code by editing a "pseudocode" version of your codebase
  • Auto-fix errors as soon as they show up in your terminal
  • Embed AI-written documentation into the UI


下载安装

选择你需要的版本,点击下载即可安装,很简单很容易。

使用 Cursor 帮你智能写代码_AI_02

点击运行就直接进行安装

使用 Cursor 帮你智能写代码_AI_03

会有默认提示选项目,按自己需求进行选择即可。

使用 Cursor 帮你智能写代码_AI_04

进入主窗口

使用 Cursor 帮你智能写代码_AI_05

打开命令行窗口

使用 Cursor 帮你智能写代码_AI_06


开始演示

先新建一个 pipeline_demo.sh 文件,用于演示 Cursor 的强大功能。

使用 Cursor 帮你智能写代码_AI_07

点击右上的小机器人图标,会显示一个指令输入文本框,是用来输入你的需求的。

使用 Cursor 帮你智能写代码_AI_08

输入: 创建一个 pipeline 脚本模板,敲回车后,Cursor 就输出了一个 pipeline 的脚本文件。

使用 Cursor 帮你智能写代码_AI_09

继续按 Ctrl+k 快捷按键,输入 添加一个 jfrog 上传功能,敲回车后,立马就输出了。

使用 Cursor 帮你智能写代码_AI_10

再来一个演示操作,继续按 Ctrl+k 快捷按键,输入自己的需求,添加一个邮件发送功能,敲回车后,也立马就输出了结果。

使用 Cursor 帮你智能写代码_AI_11

Cursor 可以很准确地理解人类语言的含义和逻辑,从而生成更加自然流畅、具有连贯性的文本,并且在生成文本时能够更好地遵循上下文、逻辑和语法规则,体现 AI 智能的强大功能。 


举报

相关推荐

0 条评论