Skip to content

Commit

Permalink
Add VS Code tooling
Browse files Browse the repository at this point in the history
  • Loading branch information
aol-nnov committed Nov 12, 2024
1 parent 6894b5a commit dc8fd65
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/go
{
"name": "Go",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/go:1-1.22-bookworm",
// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],
// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "sudo apt-get update && sudo apt-get -y install dosfstools mtools gdisk fdisk p7zip genisoimage squashfs-tools && echo 'mtools_skip_check=1' | sudo tee -a /etc/mtools.conf",
"customizations": {
"vscode": {
"extensions": [
"aaron-bond.better-comments",
"jeff-hykin.better-go-syntax",
"golang.go",
"stkb.rewrap",
"Gruntfuggly.todo-tree"
]
}
}
// Configure tool-specific properties.
// "customizations": {},
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}
10 changes: 10 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"recommendations": [
"aaron-bond.better-comments",
"jeff-hykin.better-go-syntax",
"ms-vscode-remote.remote-containers",
"golang.go",
"stkb.rewrap",
"gruntfuggly.todo-tree"
]
}
12 changes: 12 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"editor.wordWrap": "wordWrapColumn",
"editor.wordWrapColumn": 120,
"editor.formatOnSave": true,
"files.insertFinalNewline": true,
"git.confirmSync": false,
"git.autofetch": true,
"rewrap.reformat": true,
"go.testFlags": [
"-v"
]
}

0 comments on commit dc8fd65

Please sign in to comment.