Create checkpoints in your code projects just like save points in video games!
Perfect for experiments, tutorials, learning, and quick prototypes where full version control feels like overkill
Remember playing Zelda and hitting that checkpoint right before Ganondorf
? Or Dark Souls
where you desperately needed that bonfire before the boss? Global Save State
brings that same peace of mind to coding!
๐ฏ Game Situation | ๐ป Code Equivalent |
---|---|
๐ฐ Save before boss fight | Save before major refactoring |
๐งช Try different strategies | Experiment with new approaches |
๐ Chapter checkpoints | Milestone completion in tutorials |
๐จ Creative experimentation | Art projects, creative coding |
โก Speed runs | Rapid prototyping cycles |
๐ Multiple playthroughs | Different implementation attempts |
- ๐งช Experiments: Try wild ideas without fear - restore if they don't work
- ๐ Learning: Checkpoint your progress while following tutorials
- ๐ Prototyping: Quick saves for rapid iteration cycles
- ๐ง Refactoring: Save before major changes, restore if things break
- ๐จ Creative Coding: Art projects, game jams, creative experiments
- ๐ Documentation: Save states while writing examples or demos
- Large production codebases
- Team collaboration projects
- Code that needs detailed history tracking
- Professional development workflows
๐ฏ Game Feature | ๐ป Global Save State | ๐ฅ Why It's Awesome |
---|---|---|
๐พ Quick Save | Ctrl+Shift+S |
Instant checkpoint creation |
๐ Quick Load | Ctrl+Alt+R |
Instant project restoration |
๐ Named Saves | "Before AI Integration" | Descriptive checkpoint names |
๐ฏ Save Slots | Up to 50 per project | Multiple restore points |
โก No Loading Screens | Instant restore | Zero wait time |
๐ช Multiple Campaigns | Multi-root workspaces | Independent save systems |
- ๐พ Create Named Save Points: Capture your entire project state with custom names
- ๐ Instant Restore: Quickly restore to any previous save point
- ๐ Multi-Root Support: Each workspace folder maintains its own save points independently
- โ๏ธ Flexible Exclusions: Configure exclusion patterns per folder via
.vscode/settings.json
- โก Smart Detection: Automatically handles empty save points when no changes are detected
- ๐ฏ Not a VCS: Lightweight alternative to version control for quick state management
- Open VS Code
- Go to Extensions (
Ctrl+Shift+X
) - Search for "Global Save State"
- Click Install
- Start creating save points! ๐
- Download the
.vsix
file from releases - Open VS Code
- Run
Extensions: Install from VSIX...
from Command Palette - Select the downloaded
.vsix
file
Step 1: Set the Scene ๐ฌ
# Open any project in VS Code
# Make some changes to your files
# Now you're ready for your first checkpoint!
Step 2: Create Your First Save Point ๐พ
- Press
Ctrl+Shift+S
(your "Save Game" button) - Name it: "Tutorial Checkpoint 1"
- Watch the magic happen! โจ
Step 3: Make Some Changes ๐จ
// Add some experimental code
function experimentalFeature() {
// This might break everything...
return 'risky code here';
}
Step 4: Create Another Checkpoint ๐
- Press
Ctrl+Shift+S
again - Name it: "Added Experimental Feature"
Step 5: Oh No! Something Broke! ๐ฅ
- Press
Ctrl+Alt+R
(your "Load Game" button) - Select "Tutorial Checkpoint 1"
- BOOM! ๐ You're back to safety!
๐ก Pro Gamer Tip: Use descriptive save names like "Before Adding Database", "Working Login System", or "Pre-Boss-Fight-Refactor"
- ๐ฎ Keyboard:
Ctrl+Shift+S
(orCmd+Shift+S
on Mac) - ๐ Command Palette:
Global Save State: Create Save Point
Multi-Workspace Projects:
- If multiple workspace folders are open, select which folder to save
- Enter a descriptive name for your save point (think epic checkpoint names!)
- The extension captures all files (excluding configured patterns)
- ๐ฎ Keyboard:
Ctrl+Alt+R
(orCmd+Alt+R
on Mac) - ๐ Command Palette:
Global Save State: Restore Save Point
Restore Process:
- If multiple workspace folders are open, select which folder to restore
- Choose from your list of save points (sorted by newest first)
- Your project is instantly restored to that exact state
โ ๏ธ Boss Fight Warning: Just like in games, loading a save point will overwrite your current progress! Save first if you want to keep changes.
Create .vscode/settings.json
in any workspace folder:
{
"globalSaveState.excludePatterns": [
"**/node_modules/**",
"**/.git/**",
"**/dist/**",
"**/build/**",
"**/.vscode/**",
"**/out/**",
"**/*.log"
]
}
- Max Save Points: Configure maximum save points to keep (default: 50)
- Default Exclusions: Set global exclusion patterns
- VS Code 1.74.0 or higher
- Node.js 16.0.0 or higher
# Clone the repository
git clone https://github.com/Life-Experimentalist/global-save-state
# Install dependencies
npm install
# Compile TypeScript
npm run compile
# Run tests
npm test
# Build extension package
npm run build
- Architecture: System design and diagrams
- Roadmap: Milestones and future plans
- TODO: Tasks and bugs
- Changelog: Release notes
- License: License information
- Code of Conduct: Community guidelines
See Contributing Guide for details on:
- Code style guidelines
- How to submit pull requests
- Bug reporting process
Licensed under the Apache 2.0 License.
- Report bugs: GitHub Issues
- Feature requests: GitHub Issues
- Email: krishnagsvv@gmail.com
๐ฎ Happy Coding with Save Points! ๐
Made with โค๏ธ for developers who miss game checkpoints in their code