update-cursor-settings
Modify Cursor/VSCode user settings in settings.json. Use when you want to change editor settings, preferences, configuration, themes, font size, tab size, format on save, auto save, keybindings, or any settings.json values.
- License 许可
- MIT
- 最近更新
- 2026-04-29
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- update-cursor-settings
- description
- Modify Cursor/VSCode user settings in settings.json. Use when you want to change editor settings, preferences, configuration, themes, font size, tab size, format on save, auto save, keybindings, or any settings.json values.
03 SKILL.md 正文
Updating Cursor Settings
This skill guides you through modifying Cursor/VSCode user settings. Use this when you want to change editor settings, preferences, configuration, themes, keybindings, or any settings.json values.
Settings File Location
| OS | Path |
|---|---|
| macOS | ~/Library/Application Support/Cursor/User/settings.json |
| Linux | ~/.config/Cursor/User/settings.json |
| Windows | %APPDATA%\Cursor\User\settings.json |
Before Modifying Settings
- Read the existing settings file to understand current configuration
- Preserve existing settings - only add/modify what the user requested
- Validate JSON syntax before writing to avoid breaking the editor
Modifying Settings
Step 1: Read Current Settings
// Read the settings file first
const settingsPath = "~/Library/Application Support/Cursor/User/settings.json";
// Use the Read tool to get current contents
Step 2: Identify the Setting to Change
Common setting categories:
- Editor:
editor.fontSize,editor.tabSize,editor.wordWrap,editor.formatOnSave - Workbench:
workbench.colorTheme,workbench.iconTheme,workbench.sideBar.location - Files:
files.autoSave,files.exclude,files.associations - Terminal:
terminal.integrated.fontSize,terminal.integrated.shell.* - Cursor-specific: Settings prefixed with
cursor.oraipopup.
Step 3: Update the Setting
When modifying settings.json:
- Parse the existing JSON (handle comments - VSCode settings support JSON with comments)
- Add or update the requested setting
- Preserve all other existing settings
- Write back with proper formatting (2-space indentation)
Example: Changing Font Size
If user says "make the font bigger":
{
"editor.fontSize": 16
}
Example: Enabling Format on Save
If user says "format my code when I save":
{
"editor.formatOnSave": true
}
Example: Changing Theme
If user says "use dark theme" or "change my theme":
{
"workbench.colorTheme": "Default Dark Modern"
}
Important Notes
-
JSON with Comments: VSCode/Cursor settings.json supports comments (
//and/* */). When reading, be aware comments may exist. When writing, preserve comments if possible. -
Restart May Be Required: Some settings take effect immediately, others require reloading the window or restarting Cursor. Inform the user if a restart is needed.
-
Backup: For significant changes, consider mentioning the user can undo via Ctrl/Cmd+Z in the settings file or by reverting git changes if tracked.
-
Workspace vs User Settings:
- User settings (what this skill covers): Apply globally to all projects
- Workspace settings (
.vscode/settings.json): Apply only to the current project
-
Commit Attribution: When the user asks about commit attribution, clarify whether they want to edit the CLI agent or the IDE agent. For the CLI agent, modify
~/.cursor/cli-config.json. For the IDE agent, it is controlled from the UI at Cursor Settings > Agent > Attribution (not settings.json).
Common User Requests → Settings
| User Request | Setting |
|---|---|
| "bigger/smaller font" | editor.fontSize |
| "change tab size" | editor.tabSize |
| "format on save" | editor.formatOnSave |
| "word wrap" | editor.wordWrap |
| "change theme" | workbench.colorTheme |
| "hide minimap" | editor.minimap.enabled |
| "auto save" | files.autoSave |
| "line numbers" | editor.lineNumbers |
| "bracket matching" | editor.bracketPairColorization.enabled |
| "cursor style" | editor.cursorStyle |
| "smooth scrolling" | editor.smoothScrolling |
Workflow
- Read ~/Library/Application Support/Cursor/User/settings.json
- Parse the JSON content
- Add/modify the requested setting(s)
- Write the updated JSON back to the file
- Inform the user the setting has been changed and whether a reload is needed
04 同仓库更多 Skills
update-cli-config
View and modify Cursor CLI configuration settings in ~/.cursor/cli-config.json. Use when the user wants to change CLI settings, configure permissions, switch approval mode, enable vim mode, toggle display options, configure sandbox, or manage any CLI preferences.
statusline
Configure a custom status line in the CLI. Use when the user mentions status line, statusline, statusLine, CLI status bar, prompt footer customization, or wants to add session context above the prompt.
split-to-prs
Split current work into small reviewable PRs. Use when the user asks to split a chat, set of changes, branch, or PR.
shell
Runs the rest of a /shell request as a literal shell command. Use only when the user explicitly invokes /shell and wants the following text executed directly in the terminal.
migrate-to-skills
Convert 'Applied intelligently' Cursor rules (.cursor/rules/*.mdc) and slash commands (.cursor/commands/*.md) to Agent Skills format (.cursor/skills/). Use when you want to migrate rules or commands to skills, convert .mdc rules to SKILL.md format, or consolidate commands into the skills directory.
cursor-blame
Investigate how code was built with AI. Reveals which conversations produced the code, why it was implemented a certain way, what alternatives were considered, and the intent behind decisions. Use when the user asks about history, evolution, or authorship of code.