Skip to content

Instantly share code, notes, and snippets.

@doggy8088
Last active February 20, 2024 06:28
Show Gist options
  • Star 61 You must be signed in to star a gist
  • Fork 19 You must be signed in to fork a gist
  • Save doggy8088/6539a140f28924d3a1f053a8d3a9f49e to your computer and use it in GitHub Desktop.
Save doggy8088/6539a140f28924d3a1f053a8d3a9f49e to your computer and use it in GitHub Desktop.
Will 保哥的 VSCode 使用者設定檔
{
"explorer.openEditors.visible": 0,
"workbench.colorTheme": "Default Light+",
"workbench.iconTheme": "vscode-simpler-icons",
"workbench.sideBar.location": "right",
// 需下載安裝 Fira Code 字型 (安裝 OTF 格式)
// https://github.com/tonsky/FiraCode/releases
// 需下載客製化過的 Microsoft YaHei Mono 字型
// https://github.com/doggy8088/MicrosoftYaHeiMono-CP950
"editor.fontFamily": "'Fira Code', 'Microsoft YaHei Mono', Consolas, 'Courier New', monospace",
// 要啟用連體字型(Fira Code)必須將以下設定打開
"editor.fontLigatures": true,
"editor.renderIndentGuides": false,
"editor.multiCursorModifier": "ctrlCmd",
"editor.minimap.enabled": false,
"editor.minimap.renderCharacters": false,
"editor.formatOnSave": false,
"editor.wordWrap": "on",
"prettier.singleQuote": true,
"typescript.referencesCodeLens.enabled": false,
"typescript.updateImportsOnFileMove.enabled": "always",
"tslint.enable": true,
"tslint.autoFixOnSave": true,
"movets.skipWarning": true,
"html.suggest.angular1": false,
"html.suggest.ionic": false,
"[html]": {
"editor.autoIndent": false
},
"csharp.format.enable": false,
"csharpfixformat.style.enabled": true,
"csharpfixformat.style.spaces.beforeParenthesis": false,
"csharpfixformat.style.braces.onSameLine": false,
"csharpfixformat.style.newline.elseCatch": true,
"git.autofetch": true,
"git.enableCommitSigning": false,
"git.enableSmartCommit": true,
"git.confirmSync": false,
"files.associations": {
"*.csproj": "msbuild"
},
"terminal.integrated.shell.windows": "C:\\WINDOWS\\System32\\cmd.exe",
"terminal.integrated.experimentalTextureCachingStrategy": "dynamic",
"auto-rename-tag.activationOnLanguage": [
"html",
"xml",
"php"
],
"liveServer.settings.donotShowInfoMsg": true,
"liveServer.settings.donotVerifyTags": true,
"todohighlight.include": [
"**/*.js",
"**/*.jsx",
"**/*.ts",
"**/*.tsx",
"**/*.html",
"**/*.php",
"**/*.css",
"**/*.scss",
"**/*.cs"
],
"docker.languageserver.diagnostics.instructionJSONInSingleQuotes": "warning"
}
@doggy8088
Copy link
Author

doggy8088 commented Aug 2, 2018

  • "explorer.openEditors.visible": 0
    • 已開啟的編輯器會讓每次開檔/關檔的時候,檔案總管的檔案清單上下位置晃動,以致於眼球需要經常重新定位,分散注意力。
    • 由於已經有「頁籤」可以看已開啟的檔案,用 Ctrl+E 也可以快速找檔案,所以已開啟的編輯器就沒那麼有實用價值了。
  • "workbench.colorTheme": "Default Light+"
    • 由於經常要授課,在單槍投影的情況下,黑底白字比較看不清楚,所以我習慣用白底的色彩佈景主題。
  • "workbench.iconTheme": "vscode-simpler-icons"
    • 我個人不喜歡花花綠綠的 Icons,感覺很亂,所以改用簡易版的檔案圖示佈景主題。
  • "workbench.sideBar.location": "right"
    • 我經常按快速鍵 Ctrl+B 開開關關側邊攔,如果擺在左邊,每次開關側邊攔都會導致原始碼劇烈晃動,感覺不舒服。
  • "editor.multiCursorModifier": "ctrlCmd"
    • 我習慣用 Ctrl 鍵來觸發多重游標選取。
  • "editor.minimap.enabled": false
    • 我平常沒開 MiniMap 功能,想看的時候才會特別開。
  • "editor.minimap.renderCharacters": false
    • 如果開啟 MiniMap 的話,預設會顯示實際字元 (字超小),根本看不清楚。
    • 將這個設定關閉,就會改顯示彩色區塊而已,這會讓 VSCode 反應速度更快。
  • "prettier.singleQuote": true
    • 這是使用 Prettier 擴充套件一定要設定的!
  • "typescript.referencesCodeLens.enabled": false
    • 這是 Code Review 的時候才要開,平時不需要看這麼多 CodeLens 的資訊。
  • "tslint.autoFixOnSave": true
    • 這可以省下你大量的時間啊!自動修復所有能修復的 TSLint 問題!
  • "html.suggest.angular1": false
  • "html.suggest.ionic": false
    • 不寫 AngularJS 1.x 與 Ionic 的人,建議可以把內建的 Code Snippets 關閉。
  • "[html]": { "editor.autoIndent": false }
    • 在 HTML 貼上 <pre> 區段時,這個設定會導致 <pre> 標籤內的內容也被自動縮排,導致格式亂掉。
    • 建議關閉 HTML 的自動縮排功能。
  • "auto-rename-tag.activationOnLanguage": [ "html", "xml", "php" ]
    • 因為 Auto Rename Tag 擴充套件非常好用,但預設會自動套用在所有檔案格式,這會帶來一些麻煩。
    • 例如在 JS/TS 檔案中剛好改到有 < 的內容時,會導致程式被改壞,所以建議限制特定檔案才需要這個功能。
  • "csharp.format.enable": false
    • VSCode 內建的 C# Formatter 太弱,建議用 C# FixFormat 擴充套件。
  • "git.autofetch": true
    • 讓 VSCode 在背景自動執行 git fetch
  • "git.enableCommitSigning": false
    • 必要時可以啟用 Git 簽章功能 ( 我平時都會設定為 true )
  • "git.enableSmartCommit": true
    • 如果所有變更都還沒有 git add ( Stage ) 的話,預設會自動全部 Commit,不會再先問過。
  • "git.confirmSync": false
    • 當要同步 Git 遠端儲存庫時,不需要再提問。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment