mac下cursor优化
·
cat ~/Library/Application\ Support/Cursor/User/settings.json
{
// ==================== 安全设置(优先) ====================
// 启用工作区信任,防止恶意仓库自动执行 tasks.json 等
"security.workspace.trust.enabled": true,
// 打开不受信任文件前先弹窗确认(prompt=询问 / open=直接打开)
"security.workspace.trust.untrustedFiles": "prompt",
// 每次启动都询问是否信任当前工作区
"security.workspace.trust.startupPrompt": "always",
// ==================== 外观 ====================
// 主题:默认深色现代
"workbench.colorTheme": "Default Dark Modern",
// 编辑器字体大小
"editor.fontSize": 13,
// 行高倍数
"editor.lineHeight": 1.5,
// 括号配对着色
"editor.bracketPairColorization.enabled": true,
// 括号引导线(active=仅当前层级)
"editor.guides.bracketPairs": "active",
// 平滑滚动
"editor.smoothScrolling": true,
// 光标闪烁方式(smooth=平滑)
"editor.cursorBlinking": "smooth",
// ==================== 编辑器 · 效率 ====================
// 保存时自动格式化代码
"editor.formatOnSave": true,
// 缩进空格数
"editor.tabSize": 4,
// 用空格替代 Tab
"editor.insertSpaces": true,
// 根据文件内容自动检测缩进
"editor.detectIndentation": true,
// 显示右侧小地图
"editor.minimap.enabled": true,
// 空白字符显示(selection=仅在选中时显示)
"editor.renderWhitespace": "selection",
// 保存时自动删除行尾空格
"files.trimTrailingWhitespace": true,
// 保存时在文件末尾插入换行符
"files.insertFinalNewline": true,
// 自动保存(onFocusChange=切换文件时保存)
"files.autoSave": "onFocusChange",
// 新建/另存为等对话框的默认路径
"files.dialog.defaultPath": "/Users/duanshuaixing/cursor-file",
// 启用粘性滚动,固定显示当前代码块标题
"editor.stickyScroll.enabled": true,
// ==================== Codegeex ====================
// Codegeex 隐私模式
"Codegeex.Privacy": true,
// Codegeex 许可证
"Codegeex.License": "",
// ==================== Go ====================
// Go 工具自动更新
"go.toolsManagement.autoUpdate": true,
// ==================== Remote SSH ====================
// 使用系统自带的 ssh 而非扩展自带
"remote.SSH.path": "/usr/bin/ssh",
// 关闭本地 server,直接用 ssh 建立隧道
"remote.SSH.useLocalServer": false,
// 连接时弹出终端,能看见 SSH 交互提示
"remote.SSH.showLoginTerminal": true
}
更多推荐



所有评论(0)