VS Code Extensions
direnv VSCode Profile

direnv VSCode Profile

by passeriform

Auto-switch VSCode profiles using direnv and environment variables

Downloads

21

Rating

— (0)

Version

0.1.0

Last updated

May 26, 2026

This is an extension meant to work with vscode-direnv to switch VSCode profiles using VSCODE_PROFILE environment variable.

[!NOTE] VSCode by default doesn't allow switching profiles by name so this extension only opens the profile quick open menu where you need to select which profile to choose (bummer). Alternatively, you can use patchVSCode.sh, that will modify the VSCode binary to allow switching profiles automatically.

[!WARNING] Patching the vscode binary will break the build and an error will be thrown every time you open the window. Since, this isn't resolved yet, consider this a !!!MAXIMALLY BREAKING CHANGE!!! You have been warned...

Requirements

This extension requires vscode-direnv extension and direnv installed.

Acknowledgements

The logo is copyright 2015 Peter Waller and was created as the direnv logo. Additional modifications have been made to the logo as permitted by Creative Commons Attribution 4.0 International License.

Related extensions