Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"image": "mcr.microsoft.com/devcontainers/universal:2",
"features": {}
}
Comment on lines +1 to +4
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

This is a good initial devcontainer setup. To make it more robust and improve the developer experience, I suggest a few enhancements:

  1. Add a name property: This gives your dev container a recognizable name in the UI. You can replace "My Project" with a more suitable name.
  2. Pin the image version: Using a floating tag like :2 can lead to inconsistencies if the base image is updated. Pinning to a specific version (e.g., 2-jammy) ensures a reproducible environment for all developers.
  3. Add a customizations block: This is a great place to recommend VS Code extensions and settings specific to this project, which can significantly improve the developer experience out of the box.
Suggested change
{
"image": "mcr.microsoft.com/devcontainers/universal:2",
"features": {}
}
{
"name": "My Project",
"image": "mcr.microsoft.com/devcontainers/universal:2-jammy",
"features": {},
// Configure properties specific to VS Code.
"customizations": {
"vscode": {
// Add the IDs of extensions you want installed when the container is created.
"extensions": [],
// Set *default* container specific settings.json values on container create.
"settings": {}
}
}
}