AgentSkillsCN

vscode-config

在此 dotfiles 仓库中管理 VSCode/Cursor 的配置。当需要编辑 settings.json、keybindings.json 或 tasks.json 文件,或被询问关于 VSCode/Cursor 配置结构时,可使用此技能。

SKILL.md
--- frontmatter
name: vscode-config
description: Manage VSCode/Cursor configuration in this dotfiles repository. Use when working with settings.json, keybindings.json, or tasks.json files, or when asked about VSCode/Cursor configuration structure.

VSCode Config Management

Repository Structure

code
vscode/
├── user/           # Client-side, synced via Settings Sync
├── profiles/OPS/   # Profile-specific (vim bindings, editor prefs)
├── machines/ops/   # Server-side, symlinked via setup.sh
└── setup.sh        # Symlinks machine configs only

Configuration Layers

LayerLocationSync Method
Machinemachines/<hostname>/setup.sh symlink
Useruser/Settings Sync
Profileprofiles/<name>/Settings Sync

Common Tasks

Add machine config: Create machines/<hostname>/settings.json

Update vim bindings: Edit user/settings.json (keybindings sync to all machines)

Run setup on server: ./vscode/setup.sh (uses hostname, or --machine <name>)

Machine settings override user/profile. Put machine-specific paths and extensions in machine config.