Chapter 03 · Getting started入门入門
Interface overview界面概览介面概覽
Window anatomy
| Region | What it does |
|---|---|
| Toolbar | New, open, save, save all, close, close all, print, clipboard, undo/redo, macro record/stop/play. |
| Tab bar | One tab per open document. Unsaved documents carry a dot marker. Tabs can be dragged to reorder or moved between split views. |
| Editor | Line numbers, current-line highlight, bracket matching, optional whitespace marks and word wrap. |
| Sidebar | File browser with favourites; with a project open it becomes a project tree. |
| Status bar | Line and column, encoding, line endings, language, line/character counts, autosave time. |
Tab context menu
Right-clicking a tab offers close, close others, close all, copy path and reveal in Finder. The same menu is where tabs are moved to the other split view.
Sidebar states
- No project: a file browser with favourites (Applications, Desktop, Documents, Downloads, home, computer) and an “Add Folder…” entry.
- Project open: a tree rooted at the chosen folder, with an instant filter box and a right-click menu for new file, new folder, rename, delete, reveal and copy path.
Status bar details
Clicking the encoding or line-ending segment opens a menu, which is also how you reload a file with a specific encoding. The language segment opens the 36-language list so you can override auto-detection.
Appearance
Dark and light themes follow the system by default; a specific theme can be pinned in Preferences → Appearance. The default editor font is 14 pt with 1.2× line height, and the interface font is 12 pt.
Keyboard orientation
Every common action is reachable without the mouse: ⌘N, ⌘O, ⌘S, ⌘F, ⌘⇧B for the sidebar, ⌘\ for split view. The full table is in Shortcuts.
窗口构成
| 区域 | 作用 |
|---|---|
| 工具栏 | 新建、打开、保存、全部保存、关闭、全部关闭、打印、剪贴板、撤销/重做、宏录制/停止/播放。 |
| 标签栏 | 每个文档一个标签;未保存的文档带圆点标记。标签可拖拽排序,也可在分屏之间移动。 |
| 编辑区 | 行号、当前行高亮、括号匹配,可选空白字符显示与自动换行。 |
| 侧栏 | 带收藏夹的文件浏览器;打开项目后变为项目文件树。 |
| 状态栏 | 行列号、编码、行尾格式、语言、行数与字符数、自动保存时间。 |
标签右键菜单
右键标签可关闭、关闭其他、关闭全部、复制路径、在 Finder 中显示。把标签移到另一个分屏也在这个菜单里。
侧栏的两种状态
- 未打开项目:文件浏览器,含收藏夹(应用程序、桌面、文稿、下载、个人目录、电脑)与「Add Folder…」入口。
- 已打开项目:以所选文件夹为根的文件树,带即时过滤框,右键可新建文件/文件夹、重命名、删除、在 Finder 中显示、复制路径。
状态栏细节
点击编码或行尾片段会弹出菜单,「按指定编码重新加载」也在这里。点击语言片段可打开 36 种语言列表,手动覆盖自动识别结果。
外观
深色/浅色默认跟随系统,可在偏好设置 → 外观中固定某个主题。默认编辑区字号 14pt、行高 1.2 倍,界面字体 12pt。
键盘操作
常用操作都不需要鼠标:⌘N、⌘O、⌘S、⌘F、⌘⇧B 切换侧栏、⌘\ 分屏。完整列表见《快捷键管理》。
視窗構成
| 區域 | 作用 |
|---|---|
| 工具列 | 新建、開啟、儲存、全部儲存、關閉、全部關閉、列印、剪貼簿、復原/重做、巨集錄制/停止/播放。 |
| 標籤欄 | 每個文件一個標籤;未儲存的文件帶圓點標記。標籤可拖曳排序,也可在分割檢視之間移動。 |
| 編輯區 | 行號、當前行高亮、括號匹配,可選空白字元顯示與自動換行。 |
| 側欄 | 帶收藏夾的檔案瀏覽器;開啟專案後變為專案檔案樹。 |
| 狀態列 | 行列號、編碼、行尾格式、語言、行數與字元數、自動儲存時間。 |
標籤右鍵選單
右鍵標籤可關閉、關閉其他、關閉全部、複製路徑、在 Finder 中顯示。把標籤移到另一個分割檢視也在這個選單里。
側欄的兩種狀態
- 未開啟專案:檔案瀏覽器,含收藏夾(應用程式、桌面、文稿、下載、個人目錄、電腦)與「Add Folder…」入口。
- 已開啟專案:以所選資料夾為根的檔案樹,帶即時過濾框,右鍵可新建檔案/資料夾、重新命名、刪除、在 Finder 中顯示、複製路徑。
狀態列細節
點擊編碼或行尾片段會彈出選單,「按指定編碼重新載入」也在這裡。點擊語言片段可開啟 36 種語言列表,手動覆蓋自動識別結果。
外觀
深色/淺色預設跟隨系統,可在偏好設定 → 外觀中固定某個主題。預設編輯區字號 14pt、行高 1.2 倍,介面字型 12pt。
鍵盤操作
常用操作都不需要滑鼠:⌘N、⌘O、⌘S、⌘F、⌘⇧B 切換側欄、⌘\ 分割檢視。完整列表見《快速鍵管理》。