VSCode

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 Code

2023-02-10

VSCode config trim trailing space when saving file

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

2019-03-13

Git Include Ignored files

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

2019-01-05

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

2017-09-17

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 checkout develop 遇到以下的錯誤信息 " At line:1 char:12 + git fetch && git checkout develop + ~~ The token ‘‘‘’ is not a valid statement separator in this version. + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException + FullyQualifiedErrorId : InvalidEndOfLine "

2017-07-02