Search → Find in Files → Advanced 勾選 Search in Unicode files。1. 開啟 UltraEdit
2. File → Open → 選擇檔案 → 確認底部編碼顯示為 "UTF-8"
3. Search → Find in Files (Ctrl+Shift+F)
4. Find what: 輸入中文關鍵字
5. In: 選擇專案資料夾
6. Advanced → 勾選 "Search in Unicode files"、 "Use Perl regex" (可選)
7. Start Search
| 工具 | 特點 | 中文搜尋 |
|---|---|---|
| VS Code | 免費、跨平台、內建全文搜尋 (Ctrl+Shift+F)、支援正則、檔案排除模式 | 極佳,自動偵測編碼 |
| Notepad++ | 輕量、Windows 原生、Find in Files (Ctrl+Shift+F)、支援多編碼 | 優秀,需正確設定編碼 |
| Sublime Text | 極速、Goto Anything、多游標、套件豐富 | 良好,需安裝 ConvertToUTF8 處理舊編碼 |
| grepWin / ripgrep (rg) | 命令列、極速、正則強大、支援 .gitignore | 優秀,rg "關鍵字" 即可 |
| Everything + Content Search | 檔名秒搜、可啟用內容索引 | 需開啟內容索引,較耗資源 |
vendor/、node_modules/、.git/ 等非原始碼目錄。"search.exclude": { "**/vendor": true, "**/node_modules": true }。ripgrep (rg) 或 VS Code,速度與準確度最佳。UltraEdit 搜尋中文失效多半是編碼判斷或設定問題。現代開發建議改用 VS Code 或 ripgrep,預設支援 Unicode、搜尋速度快、配置簡單,能大幅提升開發效率。