Set a default model for both the Claude Code CLI and the VS Code extension. They share the same global config, so one change covers both.
Add a model key to your global user settings at ~/.claude/settings.json:
{| # ============================================================ | |
| # 1. UNION FIND (Disjoint Set Union) | |
| # ============================================================ | |
| # Use case: Connected components, cycle detection in graphs | |
| # Example: Number of Islands (LC 200) | |
| class UnionFind: | |
| def __init__(self, elements): | |
| self.parent = {e: e for e in elements} | |
| self.size = {e: 1 for e in elements} |
| export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin" |