--- title: VSCode emoji: 💻🐳 colorFrom: blue colorTo: purple sdk: docker pinned: false tags: - vscode - ide suggested_storage: small --- # VSCode on Hugging Face Spaces This space runs VSCode in a Docker container with a web interface. ## Features - Full VSCode web interface - Pre-installed development tools - GPU support (if available) - Customizable environment ## Usage 1. Click the "Run" button to start the space 2. Access VSCode through the generated URL 3. Default password/token is `huggingface` ## Custom Password To set a custom password: 1. Go to your Space settings 2. Add a "Space secret" with key `PASSWORD` and your desired password as the value 3. Restart the Space for changes to take effect ## Troubleshooting - If you see a warning about NVIDIA Driver not being detected, this is normal when running in certain environments. GPU functionality will be available when the container is run with proper NVIDIA Container Toolkit support. - If you get an error about missing password, make sure the PASSWORD environment variable is set or a password is configured in the code-server config file. ## Security For better security, use Space secrets to set your password instead of hardcoding it in the files. This prevents the password from being exposed in the repository. Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference