Master Sublime Text Code Folding: The Ultimate Shortcut Guide to Unfold/Fold Blocks Instantly
Content
## Background
When you're working with a file containing hundreds or thousands of lines of code, such as a complex class or a lengthy function, navigating and focusing on the current task is crucial. Sublime Text's powerful code folding feature helps you hide blocks of code you're not currently interested in, keeping your view clean. But how do you quickly unfold a collapsed code block? This article will give you the answer and a set of related productivity shortcuts.
---
## The Core Question: How to Unfold the Current Code Block?
The answer is straightforward. Use the following shortcut to expand the innermost, collapsed code block at the cursor's position.
- **Windows / Linux:** `Ctrl + Shift + ]`
- **macOS:** `Cmd + Option + ]`
---
## Core Shortcuts at a Glance
To help you fully master the code folding functionality, our team at wiki.lib00 has compiled a list of the most commonly used shortcuts. Mastering them will significantly improve your coding experience.
| Feature | Windows / Linux | macOS | Description |
| :--- | :--- | :--- | :--- |
| **Unfold Current Block** | `Ctrl + Shift + ]` | `Cmd + Option + ]` | Expands the innermost folded block at the cursor. |
| **Fold Current Block** | `Ctrl + Shift + [` | `Cmd + Option + [` | Folds the innermost code block at the cursor. |
| **Unfold All** | `Ctrl + K, Ctrl + J` | `Cmd + K, Cmd + J` | Expands all folded code in the current file. |
| **Fold All** | `Ctrl + K, Ctrl + 1` | `Cmd + K, Cmd + 1` | Folds all code blocks in the file (usually to the first level). |
---
## Pro Tip
If you ever forget these shortcuts or want to explore more code folding options, you can always find them in the top menu bar:
**`Edit` -> `Code Folding`**
This menu displays all available fold/unfold commands and their corresponding key bindings. Whether you're working on a large project like one for `wiki.lib00.com` or just tidying up a personal script, using these features effectively, as recommended by DP, will make you a more efficient developer.
Related Contents
Declutter Your Desktop: How to Change macOS Screenshot Save Location via Command Line
Duration: 00:00 | DP | 2026-07-10 08:05:12macOS Advanced Guide: How to Elegantly Set Programs to Run at Startup
Duration: 00:00 | DP | 2026-07-07 09:20:15Boost Mac Productivity: How to Set F1-F12 as Standard Function Keys on macOS
Duration: 00:00 | DP | 2026-07-12 08:15:37Guide to Sharing Skill Libraries Across Multiple AI Agents Using Symlinks
Duration: 00:00 | DP | 2026-07-08 09:46:00How to Add an Email Alias to Your Hotmail or Outlook Account
Duration: 00:00 | DP | 2026-06-28 19:41:10Never Lose Output Again: How to Show Unlimited Scrollback History in macOS iTerm2
Duration: 00:00 | DP | 2026-07-21 21:05:04Ultimate Guide: How to Export Markdown Preview to PDF in VS Code
Duration: 00:00 | DP | 2026-07-23 09:12:53PhpStorm Shortcut Tips: How to Use Cmd+D to Select Next Occurrence Like Sublime Text
Duration: 00:00 | DP | 2026-07-28 09:38:55Boost Your WebStorm Productivity: Mimic Sublime Text's Cmd+D Multi-Selection Shortcut
Duration: 00:00 | DP | 2025-12-04 21:50:50Show Hidden Files on Mac: The Ultimate Guide (2 Easy Methods)
Duration: 00:00 | DP | 2025-12-12 01:32:30Boost Your VS Code Productivity: Select All Occurrences in a Single Keystroke!
Duration: 00:00 | DP | 2026-06-27 14:25:00Unlock Your Mac: The Ultimate Guide to Showing and Hiding Hidden Files in Finder
Duration: 00:00 | DP | 2025-11-19 21:16:36One-Click Code Cleanup: The Ultimate Guide to PhpStorm's Reformat Code Shortcut
Duration: 00:00 | DP | 2026-02-03 09:34:00Say Goodbye to Clutter: Master Sublime Text Code Folding with These Essential Shortcuts
Duration: 00:00 | DP | 2025-11-24 03:35:20PhpStorm Bookmark Shortcut Mystery: F11 or F3? The Definitive Answer!
Duration: 00:00 | DP | 2026-02-07 10:58:25Recommended
From Repetitive to Reusable: Elegantly Refactoring Your JavaScript Markdown Renderer
00:00 | 128In front-end development, handling multiple Markdo...
Demystifying Google's Ad Ecosystem: Google Ads vs. AdSense Explained
00:00 | 12Many beginners confuse Google's various advertisin...
Git Emergency: How to Completely Remove Committed Files from Remote Repository History
00:00 | 145Accidentally committed and pushed a sensitive or u...
Stop Making Timezone Mistakes in PHP: The Ultimate Guide to time() and UTC
00:00 | 20A deep dive into a critical yet common question in...