這是歷史版本頁面 — 看 Sublime Text (64-bit) 最新版本

Sublime Text 輕量編輯器能取代哪些開發工具

Sublime Text (64-bit) 軟體圖示 Sublime Text (64-bit) 3143 (64-bit) 資料更新 2017-09-13 閱讀約 6 分鐘

寫程式寫到一半,切換檔案、搜尋函式都要等個幾秒,游標轉圈圈轉到心煩。你只是想改個設定、寫個小工具,卻得打開整套笨重的整合開發環境,記憶體吃滿、介面複雜,光是等它載入就耗掉好幾分鐘。這種時候你需要的不是更多功能,而是一個打開就能立刻開始打字的編輯器。

很多人習慣用記事本加減寫,但沒有語法標色、沒有自動補齊,寫錯字要等到執行才發現。另一邊的整合開發環境又太重,啟動慢、佔資源,對只想快速改個檔案的人來說負擔太大。這類工具的切入點是:保持輕量、啟動快,同時把開發者常用的編輯功能做扎實,讓你在「不想開 IDE」和「記事本不夠用」之間有個中間選項。

01Sublime Text 跟記事本差在哪?

記事本只能純文字編輯,Sublime Text 多了語法標色、自動補齊、多選編輯、命令面板和 Goto Anything 搜尋。寫程式時語法會上色,打錯關鍵字一眼就能看出來;按 Ctrl+P 可以直接輸入檔名跳到指定檔案,不用一層層開資料夾。這些功能記事本都沒有,但 Sublime Text 開啟速度和記事本一樣快。

02它能不能一次改多行?

可以,這是它的核心功能之一。按住 Ctrl 再用滑鼠點不同位置,就能同時在多個地方打字;也可以用 Ctrl+D 選取相同字詞,一次改掉所有重複的內容。改大量重複的程式碼或文字時很省時間,不用一行一行手動改。

03要怎麼快速跳到某個函式或某一行?

按 Ctrl+P 開啟 Goto Anything,輸入檔名可以跳檔案;在檔案內按 Ctrl+R 可以列出所有函式名稱,輸入關鍵字直接跳過去。要跳特定行號,按 Ctrl+G 輸入數字就行。搜尋是即時的,不用按 Enter,邊打字邊跳。

04外掛要怎麼裝?

先按 Ctrl+Shift+P 開啟命令面板,輸入 Install Package Control 安裝套件管理器。裝好之後再按一次 Ctrl+Shift+P,輸入 Install Package,就能搜尋並安裝外掛。外掛種類很多,Git 整合、程式碼檢查、主題配色都有,但每個外掛的品質和維護狀況不一,裝之前可以看一下下載量和最近更新時間。

05它跟 VS Code 比起來如何?

官方資料列了 VS Code 作為替代方案,說它免費、內建 Git 支援、擴充套件市場龐大。Sublime Text 的優勢是更輕量、啟動更快、資源佔用更低,但 Git 整合和終端機都要靠外掛補齊,沒有內建。如果你很依賴內建 Git 操作和整合終端機,VS Code 開箱即用;如果你追求速度和低資源佔用,Sublime Text 比較接近這個需求。

06寫 Python 或 JavaScript 適合嗎?

適合。它支援多種程式語言的語法標色和自動補齊,Python、JavaScript 都有內建支援。官方資料提到可以透過外掛如 SublimeCodeIntel 增強自動補齊功能。不過它沒有內建的直譯器或除錯器,寫完要自己到終端機執行,這點跟整合開發環境不同。

07電腦很舊跑得動嗎?

官方系統需求是 1 GHz 處理器、2 GB 記憶體、50 MB 磁碟空間,建議 4 GB 記憶體跑大型專案。以這個規格來看,多數舊電腦都跑得動。它本身設計就是輕量、低資源佔用,啟動速度快,比開整套整合開發環境省資源得多。

08免費版跟付費版差在哪?

官方說明是免費版可以無限期待評估使用,但會不定期跳出購買授權的提示。付費是一次性買斷,美金 99 元,買了之後不會再跳提示。功能上沒有差別,免費版就能用全部功能,只是會一直被提醒要付費。如果你不介意那個提示,可以一直免費使用。

09介面只有英文,會不會很難上手?

官方介面語系只有英文,沒有內建中文介面。但操作邏輯不複雜,主要功能都集中在命令面板和快捷鍵,英文選單不難猜。如果你完全看不懂英文,可以找中文教學文章或影片,但介面本身還是英文,這點要先有心理準備。

10它有沒有內建 Git 功能?

沒有內建,需要安裝外掛。官方資料提到 GitGutter、Sublime Merge、Sublime Git 這些外掛可以整合版本控制,GitGutter 會在行號旁顯示哪些行有新增、修改或刪除。如果你需要 Git 功能,裝外掛就能用,但不像 VS Code 那樣開箱就有。

11長期沒更新,還值得用嗎?

官方收錄的版本紀錄顯示近 12 個月更新 1 次、近 24 個月 4 次,更新頻率不算高,但還是有在維護。最後一次更新有加入側邊欄位置調整、Python 3.8 外掛相容性、Zsh 和 TOML 語法支援。如果你在意的是穩定性和既有功能,它還是可以用的;如果你追求新功能出很快,它的更新節奏可能不符合期待。

12寫 Markdown 或一般筆記適合嗎?

官方資料提到它也適合「writers」使用,有免干擾模式可以隱藏多餘介面專心打字。但 Markdown 的即時預覽、表格編輯這些功能,官方資料沒有提到,需要自行確認外掛能不能補上。如果你只是要一個乾淨的編輯器寫純文字或 Markdown 原始碼,它夠用;如果你需要所見即所得的編輯體驗,可能要考慮專門的 Markdown 編輯器。

下載與官方連結

前往官方網站 下載 Sublime Text (64-bit)

Sublime Text Build 3143 x64 Setup.exe · 8.54 MB · 連結指向軟體原廠

版本紀錄

再看 5 筆

看完整版本清單

這一版改了什麼

What's new in this version:

- Refreshed UI theme, including full high DPI support
- New icon
- Added alternate theme, Adaptive, that inherits colors from the color scheme
- Added new color schemes Breakers, Mariana and Sixteen, derived from the excellent work of Chris Kempson and Dmitri Voronianski
- Added color scheme and theme switchers with live preview via the command palette
- Windows: Added touch input
- Linux: Added repositories for apt, yum and pacman
- Mac: Added Touch Bar support
- Mac: Support for custom color window title bars on OS X 10.10+
- Many additions and bug fixes to the theme engine, plus full documentation
- Significant improvements to Markdown syntax highlighting, with thanks to keith-hall
- Significant improvements to C# syntax highlighting, with thanks to gwenzek
- Significant improvements to Java syntax highlighting, with thanks to djspiewak
- Significant improvements to Python syntax highlighting, with thanks to FichteFoll
- Significant improvements for R syntax highlighting, with thanks to randy3k
- Markdown: Improved symbol handling
- C#: Improved symbol handling
- Many other syntax highlighting improvements
- Various bugs with the syntax highlighting engine have been resolved
- Fixed several crash issues
- Improved responsiveness when the system is under high CPU load
- High DPI textures are used on Windows and Linux when the DPI scale is greater than 1.0
- Improved font selection on all platforms, allowing selection of different weights by name
- Added setting theme_font_options to control font rendering of UI elements
- Improved auto indent rules for HTML and PHP
- Font geometry issues that prevent bold or italics are now printed in the console
- Fixed flash-of-white that could occur when the auto complete window is closed
- Disable scroll animation when animation_enabled is false in settings
- Files can now be renamed when only the case has changed
- New windows start with an empty find history
- Find in Files panel now responds to find_all and replace_all commands
- Various regex handling improvements in the Find panel
- Fixed text widgets cutting off the bottom pixel of their selection border
- Fixed an issue with close_windows_when_empty in empty session
- Fixed empty panes on startup when hot_exit was set to false
- Fix Open Containing Folder on Windows with a folder containing a comma
- Fix multi-cursor pasting when clipboard contains one or more full lines
- Prevent UNC paths from being mangled by edit_settings
- Prevent a crash when a malformed regex is used in indentation settings
- Improved rendering performance with a large number of gutter icons
- Gutter icons are now sized properly on Windows and Linux high DPI screens
- Improved sidebar performance when folders contain many thousands of files
- Improved inline error message style
- Fixed an issue where multiple indexing status windows could be shown
- Windows: Font rendering defaults to DirectWrite unless using Consolas or Courier New
- Windows: Added support for no_antialias font option when using DirectWrite
- Windows: Improved touch pad scrolling
- Windows: Improved file change detection robustness
- Windows: Improved font selection logic
- Windows: Fix ctrl+` shortcut for UK (ISO) keyboards
- Windows: Improved fallback font handling in UI elements
- Windows: The subl executable on OS X and plugin_host.exe on Windows are now signed
- Windows: sublime_text.exe now has CompanyName set in VERSIONINFO
- minihtml: Added support for borders
- minihtml: Respects font_options from the settings
- minihtml: Fixed layout of html popups on Windows and Linux under High DPI
- minihtml: Fixed crash when doctype is present
- minihtml: Fixed a crash from non-existent CSS vars
- minihtml: Fixed a crash triggered by bad image paths
- API: Add View.text_to_window() and View.layout_to_window()
- API: All API functions now accept and return device-independent-pixels
- API: Fixed input panel not running on_cancel when re-showing the input panel
- API: Fixed selector scoring with the & operator
- API: Fixed a bug causing incorrect phantom contents
- API: Fixed crash in Window.set_view_index()
- API: Updated OpenSSL to 1.0.2k, SQLite to 3.16.02