Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Discussion options

You must be logged in to vote

Yes, using a devcontainer.json file is generally the recommended approach for creating a consistent development environment in GitHub Codespaces.

A dev container configuration allows you to define the tools, extensions, dependencies, and other settings that should be available whenever someone creates a Codespace for the repository.

1. Create a devcontainer.json

You can place the configuration inside:

.devcontainer/devcontainer.json

A basic example could look like:

{
  "name": "My Project",
  "image": "mcr.microsoft.com/devcontainers/javascript-node:1-22-bookworm",
  "customizations": {
    "vscode": {
      "extensions": [
        "dbaeumer.vscode-eslint",
        "esbenp.prettier-vscode"
…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@aryan-vijaykar
Comment options

Answer selected by ExploiterXH
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Codespaces Your development environment, in the cloud. Run VS Code and code on GitHub's cloud platform, Question Ask and answer questions about GitHub features and usage source:ui Discussions created via Community GitHub templates
4 participants