Overview Version History Q & A Rating & Review
Experiments for VSCode
Stop stashing. Stop undo-redo juggling. Toggle between different implementations on the fly.
Experiments lets you create and manage multiple variants of your code using Git branches under the hood - while keeping the workflow simple and visual.
Install from Visual Studio Marketplace
Features
How It Works
Start Experiment - your current code is committed to a baseline branch
Make changes - they're tracked in your first variant (v1)
New Variant - creates a new branch from baseline or any existing variant
Switch - toggle between any variant or back to baseline
Compare - view diffs between any two variants
Getting Started
Open the Source Control panel in the sidebar
Find the Experiments section
Click Start Experiment and give it a name
Edit your files normally
Click the + button on an experiment to create a new variant
Click the switch icon on any variant or baseline to apply it
Comparison View
Right-click any variant and select Compare With... to:
Compare with baseline
Compare with any other variant
View all changed files in a tree
Multiple comparisons can be active at once
Under the Hood
Experiments creates Git branches with the naming convention:
exp--<name>/base - The baseline branch
exp--<name>/v1, exp--<name>/v2, etc. - Variant branches
When you switch variants, all changes are auto-committed.
License
MIT