Spaces:
Sleeping
Sleeping
metadata
title: Visual Studio Code
emoji: 💻
colorFrom: blue
colorTo: indigo
sdk: docker
pinned: true
license: mit
short_description: An online VS Code on the Web, now equipped with toolchains.
💻 VS Code on the Web IDE with Auto Backup
This Space runs VS Code on the Web with a full developer toolchain, ready for mega collaboration:
🔧 Installed Developer Tools
- Python 3.12: pip, virtualenv, JupyterLab,
black,flake8,mypy, IPython - C/C++: gcc, g++, clang, lld, cmake, ninja, valgrind, gdb
- Rust: stable toolchain via rustup
- Go: latest stable
- Java: OpenJDK 17
- C#/.NET: .NET SDK 8.0
- Node.js 20: npm, yarn, pnpm, TypeScript, ts-node, nodemon
- CLI Productivity Tools: git, git-lfs, htop, fzf, ripgrep, silversearcher-ag, rsync, sqlite3, tree, jq, net-tools, and even sqlite3.
This container is designed to handle Python, Rust, Go, Node, Java, C#, C/C++, and more — all in one robust online IDE.
🗂️ Auto Backup
Every 45 minutes, /workspace is automatically uploaded to your Hugging Face repo defined in environment variables:
BACKUP_REPO→ target repo (e.g.,username/my-backup)HF_TOKEN→ your Hugging Face API token
⚠️ On first launch, the backup service will attempt to restore
/workspacefrom yourBACKUP_REPO. Make sure the repo exists. If empty, a fresh workspace will be created.
Files are uploaded using a cache-safe method to avoid LFS errors.
🚀 Usage
Set secrets in Space Settings:
BACKUP_REPOHF_TOKEN
Notes:
- Leaving either secret empty will disable Auto Backup and restore.
- All files are wiped on Space restart. Using a private repo is highly recommended.
Launch the Space → Access VS Code at
http://<space-url>:7860- No authentication by default (
--auth none). - Optional: enable a password via environment variables if desired.
- No authentication by default (
Work normally — backups run in the background every 45 minutes.
⚡ Quick Commands Cheat Sheet
Python:
python3 myscript.py
pip install <package>
jupyter lab