From 7a19a05d04aa60bbe4ce732852afacf4d20c62cb Mon Sep 17 00:00:00 2001
From: Edward <crazybber@outlook.com>
Date: Fri, 1 May 2020 12:06:24 +0800
Subject: [PATCH] update editor settings

---
 .vscode/settings.json | 29 +++++++----------------------
 cspell.json           | 35 +++++++++++++++++++++++++++++++++++
 2 files changed, 42 insertions(+), 22 deletions(-)
 create mode 100644 cspell.json

diff --git a/.vscode/settings.json b/.vscode/settings.json
index c8ee946..dee0840 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -1,5 +1,7 @@
 {
     "editor.tabSize": 2,
+    "files.trimTrailingWhitespace": true,
+    "files.insertFinalNewline": true,
     "extensions.ignoreRecommendations": true,
     "workbench.colorCustomizations": {
       "activityBar.background": "#759570",
@@ -27,25 +29,8 @@
     "go.testTimeout": "10s",
     "go.formatTool": "goimports",
     "cSpell.allowCompoundWords": true,
-    "editor.codeActionsOnSave": {"source.organizeImports": true},
-    "cSpell.words": [
-      "Goroutines",
-      "Stateful",
-      "Structs",
-      "bber",
-      "crazybber",
-      "ifelse",
-      "iostream",
-      "istack",
-      "karlseguin",
-      "logrusorgru",
-      "mongodb",
-      "nums",
-      "postgres",
-      "stretchr",
-      "struct",
-      "xargs",
-      "gomore",
-      "stackless"
-    ],
-  }
\ No newline at end of file
+    "editor.codeActionsOnSave": {
+      "source.organizeImports": true
+    },
+  }
+  //https://vscode.readthedocs.io/en/latest/getstarted/settings/
diff --git a/cspell.json b/cspell.json
new file mode 100644
index 0000000..124e443
--- /dev/null
+++ b/cspell.json
@@ -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"
+    ]
+}
\ No newline at end of file