<!DOCTYPE html>
<html lang="zh-Hant">
<head><meta charset="UTF-8"><title>我的第一個網頁</title></head>
<body><h1>Hello World!</h1></body>
</html>
index.html (或 .htm,兩者同效)| 編輯器/IDE | 授權 | 語言支援 | 關鍵特色 | 適合對象 |
|---|---|---|---|---|
| VS Code | 免費 (MIT) | 極豐富 (擴充套件) | IntelliSense、內建終端、Git、Live Server、Remote SSH | 全端開發者、團隊標準 |
| WebStorm | 訂閱制 | JS/TS/HTML/CSS 深度 | 重構、偵錯、測試、框架整合 (React/Vue/Angular) 極強 | 專業前端/全端工程師 |
| Sublime Text | 免費評估/付費授權 | 輕量、快速 | 多游標、命令面板、啟動極快 | 偏好極簡、快速編輯 |
| Vim / Neovim | 免費 (GPL/Apache) | 無限擴充 | 模態編輯、鍵盤中心、可攜性極高 | 終端機愛好者、鍵盤流 |
| Notepad++ | 免費 (GPL) | Windows 原生 | 輕量、多標籤、巨檔支援好 | Windows 快速編輯、舊專案維護 |
| 線上編輯器 (CodePen, JSFiddle, StackBlitz, CodeSandbox) | 免費/免增值 | 瀏覽器即時預覽、分享連結、NPM 匯入 | 原型驗證、教學、面試、Issue 複現 | 學習者、快速原型 |
.prettierrc)div.container>ul>li*3 → Tabroot = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.html]
indent_size = 2
跨編輯器/IDE 共享基礎格式規範,無需各自設定。
npx serve 啟動本地 HTTP 伺服器 (解決 CORS、ES Module、Service Worker 等 file:// 限制)。"editor.formatOnSave": true)。