For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /record/editor/cursor.md.

Cursor 配置

IDE 简介

Cursor Built to make you extraordinarily productive, Cursor is the best way to code with AI.「Cursor 打造让您极具生产力的产品,Cursor 是使用 AI 进行编码的最佳方式。」

Cursor 同 Windsurf Editor一样,也可以直接采用 vscode 的配置,按照 vscode 的需求配置安装插件即可,无需额外安装,前提需要注册账号才可以使用编辑器。默认安装插件的源受网络限制,下载和搜索插件比较慢,如果要求高,需要下载插件到本地进行安装,或者自行配置代理来加速插件的下载和安装。

IDE 下载

  • CURSOR 官网「👈 点击查看下载」
  • 支持系统
    • MacOS
      • Apple Silicon
      • Intel

IDE 插件

  • Andromeda
  • Auto Rename Tag
  • CodeSnap
  • CSS Navigation
  • DotENV
  • Element UI Vue Snippets
  • element-ui-helper
  • Error Gutters
  • Error Lens
  • ES7+ React/Redux/React-Native snippets
  • Git Graph
  • Git History
  • gitignore
  • GitLens — Git supercharged
  • Goto definition alias
  • Highlight Matching Tag
  • Image preview
  • IntelliSense for CSS class names in HTML
  • JavaScript (ES6) code snippets
  • JavaScript Code Snippet
  • JavaScript Snippets
  • Laravel goto view
  • Live Server
  • Markdown All in One
  • Material Icon Theme
  • MDX
  • open in browser
  • Path Autocomplete
  • Path Intellisense
  • Prettier - Code formatter
  • Project Manager
  • shell-format
  • Svg Preview
  • Turbo Console Log for more language
  • Vetur
  • VueHelper
  • Vue Peek
  • Vue VSCode Snippets
  • Vue - Official
  • Vue 3 Snippets
  • vue-helper
  • vue-component
  • Easy LESS
  • Element Plus Snippets
  • element-plus-vue
  • arco design vue snippets
VSCode 插件
  • 开发过程中使用的插件,可根据自己的需求选择使用

代码提示

  • 腾讯云 AI 代码助手

  • MarsCode AI: Coding Assistant

  • TONGYI Lingma

  • CodeGeeX

  • Raccoon

  • iFlyCode

  • GitHub Copilot [🔥 1.96.1 版本 VSCode 已内置 Copilot] ::: tip 代码助手

  • 常用国内/国外 AI 代码提示插件,可根据自己的需求选择使用

:::

IDE 配置

配置文件
{
    "workbench.colorTheme": "Andromeda Colorizer",
    "windsurf.autocompleteSpeed": "fast",
    "npm.packageManager": "bun",
    "php.validate.enable": false,
    "php.suggest.basic": false,
    "javascript.format.insertSpaceAfterConstructor": true,
    "microsoft-sovereign-cloud.environment": "custom",
    "microsoft.useMsal": true,
    "npm.enableRunFromFolder": true,
    "workbench.iconTheme": "material-icon-theme",
    "editor.cursorSmoothCaretAnimation": "on",
    "editor.wordWrapColumn": 128,
    "editor.fontFamily": "'JetBrains Mono','Cascadia Code',微软雅黑,'Noto Sans CJK SC',Menlo, Monaco, 'Courier New', monospace",
    "editor.formatOnSave": true,
    "windsurf.marketplaceExtensionGalleryServiceURL": "https://marketplace.visualstudio.com/_apis/public/gallery",
    "windsurf.marketplaceGalleryItemURL": "https://marketplace.visualstudio.com/items",
    "windsurf.enableConfig": {
        "*": true
    },
    "[jsonc]": {
        "editor.defaultFormatter": "esbenp.prettier-vscode"
    },
    "search.followSymlinks": false,
    "windsurf.cascadeOpenOnReload": false,
    "windsurf.showSelectionActions": false,
    "git.alwaysShowStagedChangesResourceGroup": true,
    "explorer.confirmDelete": false,
    "git.confirmSync": false,
    "editor.cursorBlinking": "smooth",
    "terminal.integrated.cursorStyle": "underline",
    "terminal.integrated.cursorStyleInactive": "underline",
    "terminal.integrated.cursorBlinking": true,
    "[mdx]": {
        "editor.defaultFormatter": "esbenp.prettier-vscode"
    },
    "editor.wordWrap": "on",
    "editor.linkedEditing": true,
    "editor.minimap.maxColumn": 128,
    "notebook.output.wordWrap": true,
    "prettier.printWidth": 128,
    "editor.scrollbar.horizontal": "hidden",
    "workbench.editor.tabSizingFixedMaxWidth": 140,
    "typescript.format.insertSpaceBeforeAndAfterBinaryOperators": false,
    "editor.smoothScrolling": true,
    "terminal.integrated.fontFamily": "'JetBrains Mono',monospace",
    "vetur.format.options.useTabs": true,
    "editor.bracketPairColorization.independentColorPoolPerBracketType": true,
    "editor.detectIndentation": false,
    "typescript.locale": "zh-CN",
    "git.timeline.showUncommitted": true,
    "javascript.updateImportsOnFileMove.enabled": "always",
    "typescript.updateImportsOnFileMove.enabled": "always",
    "editor.guides.bracketPairs": true,
    "codesnap.realLineNumbers": true,
    "terminal.integrated.stickyScroll.enabled": true,
    "editor.stickyScroll.enabled": false,
    "editor.quickSuggestions": {
        "comments": "on",
        "strings": "on"
    },
    "editor.fontSize": 13,
    "gitlens.hovers.currentLine.over": "line",
    "gitlens.currentLine.scrollable": false,
    "gitlens.statusBar.enabled": false,
    "gitlens.defaultDateLocale": "zh-cn",
    "gitlens.statusBar.pullRequests.enabled": false,
    "gitlens.changes.locations": ["overview", "gutter", "line"],
    "gitlens.heatmap.locations": ["overview", "gutter"],
    "workbench.activityBar.location": "top",
    "vetur.format.options.tabSize": 4,
    "terminal.integrated.tabStopWidth": 4,
    "prettier.tabWidth": 4,
    "terminal.integrated.accessibleViewFocusOnCommandExecution": true,
    "editor.minimap.size": "fill",
    "[javascript]": {
        "editor.maxTokenizationLineLength": 2500,
        "editor.defaultFormatter": "esbenp.prettier-vscode"
    },
    "typescript.check.npmIsInstalled": false,
    "workbench.enableExperiments": false,
    "telemetry.telemetryLevel": "off",
    "update.showReleaseNotes": false,
    "workbench.experimental.cloudChanges.partialMatches.enabled": true,
    "extensions.autoUpdate": "onlyEnabledExtensions",
    "[markdown]": {
        "editor.defaultFormatter": "esbenp.prettier-vscode"
    },
    "[json]": {
        "editor.defaultFormatter": "vscode.json-language-features"
    },
    "json.schemaDownload.enable": false,
    "[vue]": {
        "editor.defaultFormatter": "Vue.volar"
    },
    "[html]": {
        "editor.defaultFormatter": "esbenp.prettier-vscode"
    },
    "[javascriptreact]": {
        "editor.defaultFormatter": "esbenp.prettier-vscode"
    },
    "explorer.confirmDragAndDrop": false,
    "liveServer.settings.AdvanceCustomBrowserCmdLine": ""
}
VSCode 编辑器配置
  • VSCode 编辑器配置,可按需安装所需插件,按需配置。

对比分析

功能Cursor AI EditorVSCode
AI 集成内置 AI,开箱即用,体验流畅依赖插件(如 Copilot),需要额外配置
插件生态插件生态较弱插件丰富,支持几乎所有主流工具、框架和语言
可定制性功能固定,可定制性较低高度可定制,支持修改设置和安装插件
性能小型项目性能良好,但可能不适合大型项目对大部分项目都表现良好,性能稳定
离线能力核心 AI 功能需要网络完全支持离线使用
适用场景快速原型开发、小型项目、初学者复杂项目、多语言支持、大型团队合作