code-editor-switch
Installation
SKILL.md
code-editor-switch
Purpose
Use this skill to switch Finder/Open defaults for code, text, and config files to a new editor (for example Zed, VS Code, Cursor) using duti.
When to use
- Migrating from one editor to another on macOS.
- Standardizing file defaults for local repos and team machines.
- Fixing mismatched defaults for dotfiles and config files.
Non-negotiable rules
- Run this only on macOS.
- Prefer
dutiover direct LaunchServices plist edits. - Apply both generic UTIs and concrete extensions/names.
- Keep
public.dataopt-in only (--apply-public-data). - Verify with
duti -xafter applying mappings.