Skip to content

Commit 2043c8a

Browse files
authored
Add VS Code tooling (#266)
1 parent 6894b5a commit 2043c8a

File tree

4 files changed

+133
-0
lines changed

4 files changed

+133
-0
lines changed

Diff for: .devcontainer/devcontainer.json

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+
// README at: https://github.com/devcontainers/templates/tree/main/src/go
3+
{
4+
"name": "Go",
5+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6+
"image": "mcr.microsoft.com/devcontainers/go:1-1.22-bookworm",
7+
// Features to add to the dev container. More info: https://containers.dev/features.
8+
// "features": {},
9+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
10+
// "forwardPorts": [],
11+
// Use 'postCreateCommand' to run commands after the container is created.
12+
"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",
13+
"customizations": {
14+
"vscode": {
15+
"extensions": [
16+
"aaron-bond.better-comments",
17+
"jeff-hykin.better-go-syntax",
18+
"golang.go",
19+
"stkb.rewrap",
20+
"Gruntfuggly.todo-tree"
21+
]
22+
}
23+
}
24+
// Configure tool-specific properties.
25+
// "customizations": {},
26+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
27+
// "remoteUser": "root"
28+
}

Diff for: .gitignore

+83
Original file line numberDiff line numberDiff line change
@@ -1 +1,84 @@
1+
# File created using '.gitignore Generator' for Visual Studio Code: https://bit.ly/vscode-gig
2+
# Created by https://www.toptal.com/developers/gitignore/api/visualstudiocode,macos,go
3+
# Edit at https://www.toptal.com/developers/gitignore?templates=visualstudiocode,macos,go
4+
5+
### Go ###
6+
# If you prefer the allow list template instead of the deny list, see community template:
7+
# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore
8+
#
9+
# Binaries for programs and plugins
10+
*.exe
11+
*.exe~
12+
*.dll
13+
*.so
14+
*.dylib
15+
16+
# Test binary, built with `go test -c`
17+
*.test
18+
19+
# Output of the go coverage tool, specifically when used with LiteIDE
20+
*.out
21+
22+
# Dependency directories (remove the comment below to include it)
23+
# vendor/
24+
25+
# Go workspace file
26+
go.work
27+
28+
### macOS ###
29+
# General
30+
.DS_Store
31+
.AppleDouble
32+
.LSOverride
33+
34+
# Icon must end with two \r
35+
Icon
36+
37+
38+
# Thumbnails
39+
._*
40+
41+
# Files that might appear in the root of a volume
42+
.DocumentRevisions-V100
43+
.fseventsd
44+
.Spotlight-V100
45+
.TemporaryItems
46+
.Trashes
47+
.VolumeIcon.icns
48+
.com.apple.timemachine.donotpresent
49+
50+
# Directories potentially created on remote AFP share
51+
.AppleDB
52+
.AppleDesktop
53+
Network Trash Folder
54+
Temporary Items
55+
.apdisk
56+
57+
### macOS Patch ###
58+
# iCloud generated files
59+
*.icloud
60+
61+
### VisualStudioCode ###
62+
.vscode/*
63+
!.vscode/settings.json
64+
!.vscode/tasks.json
65+
!.vscode/launch.json
66+
!.vscode/extensions.json
67+
!.vscode/*.code-snippets
68+
69+
# Local History for Visual Studio Code
70+
.history/
71+
72+
# Built Visual Studio Code Extensions
73+
*.vsix
74+
75+
### VisualStudioCode Patch ###
76+
# Ignore all local history of files
77+
.history
78+
.ionide
79+
80+
# End of https://www.toptal.com/developers/gitignore/api/visualstudiocode,macos,go
81+
82+
# Custom rules (everything added below won't be overriden by 'Generate .gitignore File' if you use 'Update' option)
83+
184
vendor/

Diff for: .vscode/extensions.json

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"recommendations": [
3+
"aaron-bond.better-comments",
4+
"jeff-hykin.better-go-syntax",
5+
"ms-vscode-remote.remote-containers",
6+
"golang.go",
7+
"stkb.rewrap",
8+
"gruntfuggly.todo-tree"
9+
]
10+
}

Diff for: .vscode/settings.json

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"editor.wordWrap": "wordWrapColumn",
3+
"editor.wordWrapColumn": 120,
4+
"editor.formatOnSave": true,
5+
"files.insertFinalNewline": true,
6+
"git.confirmSync": false,
7+
"git.autofetch": true,
8+
"rewrap.reformat": true,
9+
"go.testFlags": [
10+
"-v"
11+
]
12+
}

0 commit comments

Comments
 (0)