VSCode

VSCode Fix ESLint Issue on Save

在日常開發中,我們經常需要使用 ESLint 來保持代碼質量和一致性。每次手動修復 ESLint 問題會很麻煩,但我們可以配置 VSCode 在保存文件時自動修復 ESLint 問題。 配置 VSCode 自動修復 ESLint 問題 1. 安裝 ESLint 擴展 首先,確保你已經安裝了 ESLint 擴展。 2. 配置 settings.json 打開 …

VS Code Markdown auto format issue

最近發現新寫既 blog post D format 爛曬… 之後同埋個 editor 無曬 D syntax highlight… 過左一段時間.. 原來是因為 install 左一個 extension.. 佢當左.md file extension 係 Infrastructure as Code 既 format Infrastructure as …

VSCode config trim trailing space when saving file

如果有用開source control, 做 code view 或 compare files 時 whitespace / Tab 會造成一些不必要既麻煩 很多IDE 都有一些設定或 plugin 可以在你儲存檔案時除去尾隨空格 在Visual Studio Code 有一些很好用的 settings 大家可在 Settings 上搜尋 …

Git Include Ignored files

今日嘗試在 git 上加入之前 用 .gitignore Ignore 左既 個 project folder 入面的 .vscode資料夾 剛剛更新了 project 入面的 workspace setting 而在VS Code 的 workspace setting 是儲存在 .vscode/settings.json 上 要把這個檔案加回 …

VS Code disable minimap - 如何在Visual Studio Code 上 Disable Minimap 這個 extension

解決方法十分簡單: 我們可以去 “File” -> “Preferences” -> “Settings” 的 “User Settings” 上把 “editor.minimap.enabled” 設定為 false 便可以了 editor.minimap.enabled": false, Hope you find it useful

How to use && (bash) in powershell to run multiple command

在這間公司工作.. 我學會了很多 command (多數是在 bash [git bash] 上使用的) 回家後可能是因為 screen 比較細的關係 所以很小會開git bash 來執行指令 會使用Visual Studio code instead VS code 是使用Powershell的 所以當我嘗試執行 git fetch && git …