Working with shortcuts
Be more productive with Replit by learning the code editor’s powerful shortcuts for editing, writing, and inspecting code.
While you can use nearly any package or library on Replit, we have also built several of our own. You can read more about these here.
Configuring a Repl
Every new repl comes with a .replit and a replit.nix file that let you configure your repl to do just about anything in any language!
Using Nix with Replit
Replit supports all programming languages through our integration with Nix. Nix is a tool for managing software packages and system configurations. It's like Python's virtualenv and pip, but instead of focusing on one programming language, it can handle all of them, and the system configuration and environment. Nix is declarative given the same instructions (and inputs, for example, the same Nix package set), it will give you the exact same result, regardless of when or where you run it.
Using Git with Replit
There are a few ways to use Git and Replit together, using either the GUI controls built into the Replit IDE or the Replit shell.
Git commands reference guide
You can keep track of changes to your repls using Git. Here are some basic and advanced Git commands you might find useful. Note that these are not intended as a replacement for the Git reference docs, but rather a simpler version of the most commonly used commands.
Running GitHub repositories on Replit
GitHub repositories can be run automatically on Replit. Head to https://replit.com/github to import a repository. Any public repository under 500 MB (or 1GB with Hacker plan) can be cloned. You can unlock private repos after authenticating with GitHub and purchasing private repls with Cycles or with our Hacker plan.
GitHub Authentication Errors in Replit
While interacting with our Git plugin and GitHub integration, you may run into error messages that look like this.
Getting repl metadata
In some cases, it's useful to automatically retrieve metadata about a repl from within that repl.
Repls that are written in the following languages can use a built-in, multiplayer debugger:
Secrets and environment variables
Sensitive information, such as credentials and API keys, should be separate from your code.
Using repl history
To help ensure you never lose work, Replit auto-saves your code as you write. If you ever lose an edit to your code that you'd like to recover, repl history is there to help.
To change the theme of the Replit Workspace, navigate to the main menu by pressing the hamburger menu in the top left corner of your Workspace.
Add a Made with Replit badge to your Webview
Now you can add a "Made with Replit" badge to your public Repl's webview.
Replit’s GhostWriter is available in private beta now! GhostWriter will become a paid feature in the coming months. We’re offering free access for now so we can learn more and make it better. Find answers below to some questions about GhostWriter and Replit’s policies.
How to make a Replit template
If your Repl can be used as a good starting point for other project, you might want to publish it as a template! Let's learn what a Replit template is and how to make a good one.
Playing audio on Replit
See how to use audio on Replit in this video, or read on below.
Running Rails on Replit
Running a Ruby on Rails application on Replit is usually quite easy and this guide hopes to hold your hand through the process.