From dc968c57e9a5a53d81a6bb6229e7ae88f0ee79ce Mon Sep 17 00:00:00 2001 From: Sebastien Douheret Date: Fri, 8 Mar 2019 15:20:37 +0100 Subject: Update vscode workspace settings Change-Id: I25df360182a2d6e5e262e50c08e3a4e0dfa2977a Signed-off-by: Sebastien Douheret --- .vscode/settings.json | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.vscode/settings.json b/.vscode/settings.json index 093e927..9f68e9f 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,5 +1,16 @@ // Place your settings in this file to overwrite default and user settings. { + // Specify GOPATH here to override the one that is set as environment variable. The inferred GOPATH from workspace root overrides this, if go.inferGopath is set to true. + "go.gopath": "${workspaceRoot}/../../../../../..", + + // The number of spaces a tab is equal to. This setting is overriden based on the file contents when `editor.detectIndentation` is on. + "editor.tabSize": 4, + // Insert spaces when pressing Tab. This setting is overriden based on the file contents when `editor.detectIndentation` is on. + "editor.insertSpaces": true, + + // When opening a file, `editor.tabSize` and `editor.insertSpaces` will be detected based on the file contents. + "editor.detectIndentation": true, + // Pick 'gofmt', 'goimports' or 'goreturns' to run on format. "go.formatTool": "gofmt", -- cgit 1.2.3-korg