A Visual Studio Code extension to switch OBS scenes automatically when opening files previously marked to contain sensitive / secret data (e.g. .env files).
- Auto connect to OBS on launch
- Set an OBS websocket password in your keychain / Secret Service API (libsecret) / Credential Vault.
- Add & remove selected files to the list of secret files straight from the file explorer.
- Switch scenes if the opened filename matches to a regexp in the workspace settings
- Automatically switch back when file containing secrets is closed again
This extension requires OBS Studio and the OBS Websocket extension installed, or simply OBS v28 or newer.
This extension contributes the following settings:
obsSwitcher.fileNames
: File names to trigger the scene switching (default:*.env*
)obsSwitcher.autoSwitchBack
: Switch back after closing a secret file (default:true
)obsSwitcher.sceneName
: OBS scene to switch to when a secret file is openedobsSwitcher.transition
: OBS transition to be used when switching between scenesobsSwitcher.address
: OBS Websocket address (default:localhost:4455
)obsSwitcher.secure
: Secure OBS Websocket connection (default:false
)obsSwitcher.autoConnect
: If active, this extension will try to automatically connect to the OBS Websocket endpoint (default:false
)
- None at the time of writing
- Works with OBS v28 and newer
- Defaults to autostart with VS Code, with improved timings
- Defaults port to default obs-websocket port 4455
- Reduced size considerably
- New indicator icon (bottom right) showing whether the active file is being hidden or not
- Removed connected/disconnected messages in order to avoid clutter when connecting and disconnecting
- "Cut" transition fallback to a "Cut"-alike transition whenever Cut is not found. Will usually default to the equivalent of "Cut" on OBS setups where the locale isn't English
Added option to set transition name. (defaults to "Cut")
Initial release