The way to think about Github Codespaces is essentially VSCode in a browser. It’s a remote development environment that is extremely easy to spin up. While not all VSCode plugins are supported, the Sway LSP plugin is supported and works out of the box.
Edit the file to include the following features:
"features": {
"ghcr.io/devcontainers/features/common-utils:1": {},
"ghcr.io/FuelLabs/devcontainer-features/fuelup:1.0.1": {},
}
Add any plugins that you want to be installed for this repo under “customizations”.
"customizations": {
"vscode": {
"extensions": [
"fuellabs.sway-vscode-plugin"
]
}
}
Here are examples that include the Sway LSP plugin.
forc
to build and deploy sway code, or fuelup
to manage the toolchain version. You also have the Sway LSP plugin with full feature support for sway, like syntax highlighting, hover docs, go-to definition, etc. This is a great tool for hackathons! Users can easily get started with a full development environment without having to install anything on their personal machine, which could be a barrier for people who are new to Fuel/Sway.
For all contributors that are part of the Github organization, Codespaces is billed to Fuel. For other users, they will be required to enter billing information. There is a substantial free tier so hackathon users don’t have to worry about getting billed as long as they shut down the codespace when they’re finished using it.
Now you are ready to start building with Fuel.
👉 Check out the quickstart guide to deploy your first smart contract.
Was this page helpful?