从phpstorm迁移到cursor:https://positroid.tech/en/post/from-jetbrains-phpstorm-to-cursor-vs-code#plugins

My Top Cursor Tips (v0.43)https://dev.to/heymarkkop/my-top-cursor-tips-v043-1kcg
把cursor配置调整一下:

{
    // PHP语言特定配置(空对象表示使用默认配置)
    "[php]": {
    },
    // 指定PHP可执行文件路径(用于语法验证等)
    "php.validate.executablePath": "/usr/bin/php8.3",

    /** >>> 文件相关配置 ​**/
    // 自动保存模式:窗口失去焦点时保存
    "files.autoSave": "onFocusChange",
    // 自动猜测文件编码
    "files.autoGuessEncoding": true,
    // 文件监视排除列表(不监视这些目录的变化)
    "files.watcherExclude": {
        "**/.git/**": true,     // Git元数据
        "**/node_modules/**": true, // Node.js依赖
        "**/var/**": true,      // 临时文件
        "**/cache/**": true,    // 缓存文件
    },
    // PHP问题检查时忽略.gitignore中列出的文件
    "php.problems.excludeGitIgnore": true,
    /** <<< 文件配置 ​**/

    /** >>> 主题与外观配置 ​**/
    // 主颜色主题
    "workbench.colorTheme": "Darcula Contrast",
    // 编辑器字体大小
    "editor.fontSize": 13,
    // 终端字体大小
    "terminal.integrated.fontSize": 14,
    // 调试控制台字体大小
    "debug.console.fontSize": 14,
    // 文件树缩进宽度
    "workbench.tree.indent": 20,
    // 图标主题
    "workbench.iconTheme": "vscode-jetbrains-icon-theme-2023-dark",
    // 自定义颜色(覆盖主题默认值)
    "workbench.colorCustomizations": {
        "sideBar.background": "#2b2d30",          // 侧边栏背景色
        "sideBarSectionHeader.background": "#2b2d30", // 分区标题背景
        "sideBarSectionHeader.border":"#1e1f22",  // 分区标题边框
        "editor.background": "#1e1f22",            // 编辑器背景
        "titleBar.activeBackground": "#2b2d30",    // 标题栏背景
        "statusBar.background": "#2b2d30",        // 状态栏背景
        "activityBar.background": "#2b2d30",      // 活动栏背景
        "activityBar.border":"#1e1f22",           // 活动栏边框
        "panel.background":"#2b2d30",             // 面板背景
        "panel.border": "#1e1f22"                 // 面板边框
    },
    /** <<< 主题配置 ​**/

    /** >>> 窗口布局配置 ​**/
    // 启用命令中心(顶部快捷命令栏)
    "window.commandCenter": true,
    // 自定义标题栏可见性(auto=自动适应系统)
    "window.customTitleBarVisibility": "auto",
    // 标题栏样式(custom=自定义样式)
    "window.titleBarStyle": "custom",
    // 在新窗口打开文件夹(on=始终新窗口)
    "window.openFoldersInNewWindow": "on",
    // 活动栏垂直排列(默认水平)
    "workbench.activityBar.orientation": "vertical",
    /** <<< 窗口配置 ​**/

    /** >>> 行为配置 ​**/
    // 禁用编辑器预览模式(直接打开文件)
    "workbench.editor.enablePreview": false,
    // 单词分隔符(影响单词选择和导航)
    "editor.wordSeparators": "`~!@#%^&*()-=+[{]}\\|;:'\",.<>/?",
    // 列表项打开方式(双击打开)
    "workbench.list.openMode": "doubleClick",
    // 禁用RedHat扩展的遥测
    "redhat.telemetry.enabled": false,
    // 禁用GitLens的当前行注释
    "gitlens.currentLine.enabled": false,
    // Symfony控制台路径(用于PHP框架集成)
    "symfony-vscode.consolePath": "bin/console",
    // 删除文件时不显示确认对话框
    "explorer.confirmDelete": false,
    /** <<< 行为配置 ​**/
}
Logo

汇聚全球AI编程工具,助力开发者即刻编程。

更多推荐