update editor settings

This commit is contained in:
Edward 2020-05-01 12:06:24 +08:00
parent b9a9dc740d
commit 7a19a05d04
2 changed files with 42 additions and 22 deletions

27
.vscode/settings.json vendored
View File

@ -1,5 +1,7 @@
{ {
"editor.tabSize": 2, "editor.tabSize": 2,
"files.trimTrailingWhitespace": true,
"files.insertFinalNewline": true,
"extensions.ignoreRecommendations": true, "extensions.ignoreRecommendations": true,
"workbench.colorCustomizations": { "workbench.colorCustomizations": {
"activityBar.background": "#759570", "activityBar.background": "#759570",
@ -27,25 +29,8 @@
"go.testTimeout": "10s", "go.testTimeout": "10s",
"go.formatTool": "goimports", "go.formatTool": "goimports",
"cSpell.allowCompoundWords": true, "cSpell.allowCompoundWords": true,
"editor.codeActionsOnSave": {"source.organizeImports": true}, "editor.codeActionsOnSave": {
"cSpell.words": [ "source.organizeImports": true
"Goroutines", },
"Stateful",
"Structs",
"bber",
"crazybber",
"ifelse",
"iostream",
"istack",
"karlseguin",
"logrusorgru",
"mongodb",
"nums",
"postgres",
"stretchr",
"struct",
"xargs",
"gomore",
"stackless"
],
} }
//https://vscode.readthedocs.io/en/latest/getstarted/settings/

35
cspell.json Normal file
View File

@ -0,0 +1,35 @@
{
"version": "0.1",
"enabledLanguageIds": [
"go",
"markdown"
],
"enabled": true,
// words - list of words to be always considered correct
"words": [
"Goroutines",
"Stateful",
"Structs",
"bber",
"crazybber",
"ifelse",
"iostream",
"istack",
"karlseguin",
"logrusorgru",
"mongodb",
"nums",
"postgres",
"stretchr",
"struct",
"xargs",
"gomore",
"stackless"
],
// flagWords - list of words to be always considered incorrect
// This is useful for offensive words and common spelling errors.
// For example "hte" should be "the"
"flagWords": [
"hte"
]
}