Windsurf Editor 是個 AI Code 神器,和 Cursor Code Editor 比起來 "幾乎" 是有過之而無不及。 但是,我發現 Windsurf 使用 open-vsx 的marketplace,造成某些在 VS Code 常用的 Extension 不能安裝,例如說 Microsoft 的 C# Dev Kit 或是 .Net Unit Test 要用的 .NET Core Test Explorer ;前者是 微軟禁止在其他 IDE 使用,後者則是與微軟的C# Extension相依。
從vue/cli改為vite時,首先遇到 Property 'xxx' does not exist on type ,這種很鳥的錯誤,不知道為什麼沒找到很好的解法,但我就先把package.json裡的 "build": "vue-tsc --noEmit && vite build" 直接改成 "build": "vite build" ,等正式發行 vite 3.0時應該這些設定檔都會校調好吧?
當使用<script setup> 語法撰寫時,若出現 defineEmits is not defined 或 defineProps is not defined 時,不一定是真的錯,很可能只是eslint檢查出錯。 解決方法: 加上import { defineEmits, defineProps } from "vue"; 直接在 .eslintrc.js 加上 env: { "vue/setup-compiler-macros": true }, ,就不必在每個vue檔裡加入上述引用