Slidev + Cursor: Turning Slides into a Conversation with AI

前言 / Introduction Making technical slides used to feel heavier than writing code. 大部分工程師或許跟我一樣,都被做簡報這件事所困。傳統的簡報工具像是 PowerPoint 或 Keynote,對我們來說總有種格格不入的感覺:需要使用滑鼠點擊、調整格式,這些操作中斷我們的習慣流程。 直到我開始用 Slidev,再搭配 Cursor,整個人感覺都對了。Slidev 讓簡報變成 Markdown 檔案,而 Cursor 讓 AI 成為你的簡報夥伴。這個組合不僅解決了工具使用的問題,更重要的是改變了製作簡報的思維方式。 Slidev: Slides as Markdown Slidev treats slides as a Markdown document. 軟體開發最常被用於紀錄文檔的語法,想當然就是 Markdown,整體使用的概念也很簡單: Slide order is file structure Code blocks work naturally Git handles version control 對工程師來說,幾乎沒有學習成本。 Traditional Tools vs Slidev Let’s compare the workflow differences: Aspect Traditional Tools (PowerPoint/Keynote) Slidev 操作方式 Click to add slides, drag to reorder Edit text to add or reorder slides 格式化 Formatting requires GUI interactions Formatting is just Markdown syntax 版本控制 Save as different files It’s a text file — Git works perfectly 代碼塊 Copy-paste and hope formatting works Native Markdown support with syntax highlighting 協作 Share files back and forth Merge requests, code reviews, just like code The difference isn’t just about tools — it’s about thinking in text, not slides. ...

November 6, 2025 · 2 min · 267 words · Daniel Ho

Boost Your AI Coding Flow with Git Worktree

前言 / Introduction 為什麼需要 git worktree? 在現代軟體開發中,我們經常面臨這樣的困境: 多個功能同時開發:主線功能、實驗性功能、緊急修復 AI 輔助開發:AI 生成的程式碼需要測試,但不想污染主分支 分支切換困擾:頻繁的 git checkout 容易忘記當前狀態 Stash 堆積:臨時程式碼越來越多,難以管理 Git Worktree 就是為了解決這些問題而生。它允許你在同一個 repository 中創建多個工作目錄,每個目錄對應不同的分支,讓你可以同時進行多個開發任務。 git worktree 核心概念 什麼是 Worktree? git worktree 是 Git 2.5+ 引入的功能,它允許你: 在同一個 repository 中創建多個工作目錄 每個工作目錄可以切換到不同的分支 所有工作目錄共享同一個 .git 目錄 可以同時編輯、測試、提交不同分支的程式碼 與其他 Git 功能的比較 功能 用途 優點 缺點 Commit 永久記錄程式碼 版本追蹤完整 不適合半成品 Stash 臨時暫存變更 快速切換分支 容易堆積、遺忘 Branch 功能分支開發 版本控制完整 需要頻繁切換 Worktree 平行工作目錄 同時開發多分支 需要更多磁碟空間 實戰教學:從零開始使用 Worktree 1. 基本操作 創建新的 Worktree # 基本語法 git worktree add <path> <branch-name> # 實際範例:創建一個新的 Worktree 來開發 AI 功能 git worktree add ../myapp-ai-feature ai-feature # 如果分支不存在,使用 -b 參數創建 git worktree add -b experimental-feature ../myapp-experimental experimental-feature 查看所有 Worktree # 列出所有 Worktree git worktree list # 輸出範例: # /home/user/myapp main [main] # /home/user/myapp-ai-feature ai-feature [ai-feature] # /home/user/myapp-experimental experimental-feature [experimental-feature] 刪除 Worktree # 刪除 Worktree(會同時刪除對應的分支) git worktree remove ../myapp-ai-feature # 強制刪除(即使有未提交的變更) git worktree remove --force ../myapp-ai-feature # 只刪除 Worktree,保留分支 git worktree remove --keep-branch ../myapp-ai-feature 2. 進階用法 創建臨時 Worktree # 創建臨時 Worktree,用完自動清理 git worktree add --detach ../temp-Worktree HEAD # 或者指定特定 commit git worktree add --detach ../temp-Worktree abc1234 移動 Worktree # 移動 Worktree 到新位置 git worktree move ../myapp-ai-feature /new/path/ai-feature # 移動後記得更新 IDE 的專案路徑 AI 開發場景的最佳實踐 場景一:AI 程式碼實驗 當 AI 生成多個解決方案時,使用 Worktree 可以同時測試: ...

August 24, 2025 · 2 min · 369 words · Daniel Ho

From VS Code to Cursor: A Full Journey with AI-Powered Code Editors

前言 / Introduction 碩班期間,由於 OpenAI 掀起了一股 AI Agent 狂熱,而程式撰寫也跟上了這股熱浪。因緣際會之下,參與了 GitHub Student Developer Pack,導入了 Github Copilot 到日常使用,透過他在背後助補全程式碼。 After getting access to GitHub Copilot through the GitHub Student Developer Pack during school, I was impressed by how it assisted with code completion in daily work. 進公司後,團隊開始導入 Cursor 這套基於 VS Code 的 AI IDE,也讓我有機會體驗不同工具帶來的差異與便利。 At work, our team started promoting Cursor, an AI IDE built on top of VS Code’s open source version. This gave me a great opportunity to experience the differences and benefits of both tools. ...

May 30, 2025 · 6 min · 1075 words · Daniel Ho