Claude Code Profiles.
In this AI era, it is pretty common that you have your own Claude account and the company you work for also provides you with a Claude account. At least that was my case.
Even though Claude Code in the command line could be configured with an environment variable CLAUDE_CONFIG_DIR to point to different Claude configuration directory such as ~/.claude (default) or ~/.claude-personal the Claude VSCode extension lacked that flexibility, even though it could perfectly be baked into the extension itself.
VSCode has a pretty neat way to separate workspaces and those are "profiles". Each profile could have their own set of extensions, IDE configuration, you name it. So I built a small extension that reads CLAUDE_CONFIG_DIR from the active profile's settings and injects it into the official Claude VSCode extension, so it behaves exactly like Claude Code in the terminal with that same variable set. Et voilà.
I have transitioned to use ADEs by now, using Orca right now but this extension that injects the environment variable according to its VSCode profile configuration helped a lot in my first attempts to include AI into my workflow. After all, you don't want to mix up your personal account tokens with your company tokens!
Here is the extension: https://marketplace.visualstudio.com/items?itemName=leog.claude-code-config-dir-patcher