-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsettings.json
More file actions
183 lines (183 loc) · 6.08 KB
/
settings.json
File metadata and controls
183 lines (183 loc) · 6.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
{
// "terminal.external.windowsExec": "wt.exe",
// "terminal.external.osxExec": "iTerm.app",
// "terminal.external.linuxExec": "tilix",
// "terminal.integrated.defaultProfile.windows": "C:\\Program Files\\PowerShell\\7\\pwsh.exe",
// "terminal.integrated.defaultProfile.osx": "/usr/local/bin/zsh",
// "terminal.integrated.defaultProfile.linux": "/bin/zsh",
// Enable native tabs (macOS-only for now)
"window.nativeTabs": true,
// Enable new context menu (Linux-only for now)
"window.titleBarStyle": "custom",
"breadcrumbs.enabled": true,
// Cascadia Code NF or other nerd fonts can be downloaded here: https://www.nerdfonts.com/font-downloads
"editor.fontFamily": "CaskaydiaCove NF",
"editor.fontSize": 13,
// Enable font ligatures (Cascadia Code PL supports them)
"editor.fontLigatures": true,
"editor.formatOnPaste": true,
"editor.formatOnSave": true,
"editor.wordWrap": "on",
"editor.renderControlCharacters": false,
"editor.copyWithSyntaxHighlighting": true,
"diffEditor.ignoreTrimWhitespace": false,
"extensions.autoUpdate": true,
"extensions.ignoreRecommendations": false,
"explorer.confirmDelete": false,
"explorer.confirmDragAndDrop": false,
// Disable telemetry
"telemetry.enableTelemetry": false,
"workbench.startupEditor": "newUntitledFile",
// One Dark Pro theme
"workbench.colorTheme": "One Dark Pro",
// Material Icon Theme pack
"workbench.iconTheme": "material-icon-theme",
"files.associations": {
"*.lock": "toml",
"*.tpl": "gohtml",
"CHANGELOG": "markdown",
"README": "markdown",
"Dockerfile*": "dockerfile"
},
"files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true,
"**/desktop.ini": true
},
"files.watcherExclude": {
"**/.git/objects/**": true,
"**/.git/subtree-cache/**": true,
"**/node_modules/*/**": true
},
// Golang templates
"emmet.syntaxProfiles": {
"tpl": "html"
},
"emmet.triggerExpansionOnTab": true,
"emmet.includeLanguages": {
"jekyll": "html",
"scss": "css"
},
// Git settings
"git.autofetch": true,
"git.confirmSync": false,
"git.enableSmartCommit": true,
// GitLens extension remotes
"gitlens.remotes": [
// {
// "name": "Some Bitbucket Server",
// "type": "BitbucketServer",
// "domain": "your.custom.domain",
// "protocol": "https",
// },
],
// Settings for remote work
"remote.extensionKind": {
"ms-azuretools.vscode-docker": "workspace"
},
// List your remotes' OS here
"remote.SSH.remotePlatform": {
// "my.ssh.server": "linux",
},
// Search exceptions
"search.exclude": {
"**/node_modules": true,
"**/bower_components": true,
"**/vendor": true
},
"go.lintTool": "golangci-lint",
// "go.lintTool": "revive",
"go.lintFlags": [
"-v",
// "--config=/your/gosrc/folder/.golangci.yml", // for golangci-lint
// "--config=/your/gosrc/folder/.revive.toml", // for revive
],
// you can set "workspace" here for small/medium projects
"go.lintOnSave": "package",
// List your goproxy-related envs here
"go.toolsEnvVars": {
// "GOPROXY": "https://your.goproxy.server|https://proxy.golang.org,direct",
// "GONOSUMDB": "company.module.prefix",
},
"go.coverageDecorator": {
"type": "gutter"
},
"go.coverageOptions": "showUncoveredCodeOnly",
"go.coverOnTestPackage": true,
"go.coverOnSingleTest": false,
"go.testFlags": [
"-v",
"-cover",
// "-count=1", // enable this to disable test caching
],
"go.addTags": {
"tags": "json,db",
"options": "json=omitempty",
"promptForTags": true,
"transform": "snakecase"
},
"go.enableCodeLens": {
"runtest": true
},
// Delve settings - uncomment and set up as required
// "go.delveConfig": {
// "dlvLoadConfig": {
// "followPointers": true,
// "maxVariableRecurse": 5,
// "maxStringLen": 100,
// "maxArrayValues": 50,
// "maxStructFields": -1
// },
// "apiVersion": 2,
// "showGlobalVariables": true,
// },
"[go]": {
"editor.codeActionsOnSave": {
"source.organizeImports": true,
},
"editor.defaultFormatter": "golang.go",
"editor.formatOnSave": true,
// Optional: disable snippets with 'none', as they conflict with completion ranking.
"editor.snippetSuggestions": "inline",
},
"[go.mod]": {
"editor.codeActionsOnSave": {
"source.organizeImports": true,
},
"editor.formatOnSave": true,
},
"go.toolsManagement.autoUpdate": true,
// LSP settings - see https://github.com/golang/tools/blob/master/gopls/doc/vscode.md
"go.useLanguageServer": true,
// uncomment if LSP debug is needed
// "go.languageServerFlags": [
// "-rpc.trace", // for more detailed debug logging
// "serve",
// "--debug=localhost:6060", // to investigate memory usage, see profiles
// ],
// gopls flags - see https://github.com/golang/tools/blob/master/gopls/doc/settings.md
"gopls": {
"build.experimentalWorkspaceModule": true,
"formatting.gofumpt": true,
"ui.completion.usePlaceholders": true,
"ui.navigation.importShortcut": "Definition",
"ui.semanticTokens": true,
// "formatting.local": "your/project/module" // you can also add this per-project
},
// ----------- Go-related settings end
// Other extensions
"[dockerfile]": {
"editor.defaultFormatter": "ms-azuretools.vscode-docker"
},
"[helm]": {
"editor.defaultFormatter": "redhat.vscode-yaml"
},
"redhat.telemetry.enabled": false,
"yaml.schemas": {
"file:///toc.schema.json": "/toc\\.yml/i"
},
"yaml.format.enable": true,
}