Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學

記事本隱藏神技 10 招:自動記時、自動換行、熱鍵喚醒、網頁預覽、純文字過濾、批次處理、清理垃圾…

編輯:Windows XP 系統介紹

記事本體積小、啟動快、純文字特性強,遠不止記事工具。掌握這 10 招,讓它成為您的效率利器。

1. 自動記錄開啟時間

第一行輸入 .LOG(大寫、含點),儲存。每次開啟自動在末尾插入目前日期時間,適合工作日誌、除錯記錄。

2. 自動換行

「格式」→ 勾選「自動換行」。長行文字依視窗寬度換行,閱讀無需水平捲動。

3. 自訂熱鍵一鍵喚醒

  1. 找到 %windir%\system32\notepad.exe → 右鍵「內容」→「捷徑」頁籤。
  2. 「快速鍵」欄按下組合鍵(如 Ctrl+Alt+N),系統自動補全 Ctrl+Alt。
  3. 確定。之後隨時按熱鍵即可啟動/切換記事本。

4. 秒速網頁原始碼預覽

  1. 貼上 HTML/JS/CSS 程式碼。
  2. 「另存新檔」→ 檔名 demo.html(副檔名 .html/.htm)。
  3. 雙擊或拖入瀏覽器即時預覽,修改存檔後重新整理即可。

5. 純文字過濾器:移除格式、圖片、表格

複製網頁/Word 內容 → 貼上記事本 → 全選複製 → 貼回目標編輯器。所有富文字格式、圖片、表格自動剝離,僅留純文字。

6. 批次檔自動化:複製 1GB 影片從 3分30秒 降至 1分20秒

@echo off
copy e:\movie.mp4 d:\

存為 copy_movie.bat 執行。原理:批次檔直接呼叫系統 copy 指令,避開檔案總管 UI 開銷,大檔案效能差異顯著。

7. 系統垃圾一鍵清理批次檔(實測單次釋放 600MB+)

@echo off
echo 正在清除系統垃圾檔案,請稍候...
del /f /s /q %systemdrive%\*.tmp
del /f /s /q %systemdrive%\*._mp
del /f /s /q %systemdrive%\*.log
del /f /s /q %systemdrive%\*.gid
del /f /s /q %systemdrive%\*.chk
del /f /s /q %systemdrive%\*.old
del /f /s /q %systemdrive%\recycled\*.*
del /f /s /q %windir%\*.bak
del /f /s /q %windir%\prefetch\*.*
rd /s /q %windir%\temp & md %windir%\temp
del /f /q %userprofile%\cookies\*.*
del /f /q %userprofile%\recent\*.*
del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*"
del /f /s /q "%userprofile%\Local Settings\Temp\*.*"
del /f /s /q "%userprofile%\recent\*.*"
echo 清理完成!
pause

存為 清理垃圾.bat(編碼 ANSI/UTF-8 with BOM),右鍵「以系統管理員身分執行」。謹慎使用:包含 del /s 遞迴刪除,確認路徑無誤再執行。

8. 快速建立空白檔案

命令列:type nul > filename.txt 或記事本存檔即可。

9. 移除文字中的 Tab 字元

  • Word:Ctrl+H → 尋找 ^t → 取代為空白 → 全部取代。
  • EmEditor/Notepad++:Ctrl+H → 尋找 \t → 勾選「逸出序列」→ 全部取代。

10. 編碼轉換小幫手

「另存新檔」→ 編碼下拉選單:ANSI、UTF-8、UTF-16 LE/BE、Unicode big endian 互轉,處理亂碼檔案極為方便。

進階:記事本替代品推薦

Copyright © Windows教程網 All Rights Reserved
工具特色
Notepad++語法高亮、多標籤、外掛豐富、免費開源
VS CodeIntelliSense、Git 整合、擴充套件生態、跨平台
EmEditor巨大檔案(GB 級)開啟極快、CSV 模式、巨集錄製
Sublime Text多游標編輯、命令面板、極速啟動