Sublime Text HotKey Cheatsheet

2024 年 12 月 18 日

Sublime Text is a cross-platform code editor widely used in software development, web design, text processing, and other fields. Its smooth operation and simple interface have made it the tool of choice for many developers.

Sublime Text Windows Shortcut Keys

Editing Functions

ShortcutDescription
Ctrl+NNew File
Ctrl+OOpen File
Ctrl+SSave File
Ctrl+Shift+SSave As
Ctrl+WClose Current File
Ctrl+Shift+TReopen Last Closed File
Ctrl+ZUndo
Ctrl+Shift+ZRedo

Find and Replace

ShortcutDescription
Ctrl+FFind
Ctrl+HReplace
Ctrl+Shift+FFind in Folder
Ctrl+Shift+HReplace in Folder
F3Find Next
Shift+F3Find Previous

Code Editing

ShortcutDescription
Ctrl+DSelect Next Same Word
Ctrl+Shift+DDuplicate Current Line
Ctrl+Shift+KDelete Current Line
Ctrl+LSelect Entire Line
Ctrl+Shift+LSplit Selection into Lines
Ctrl+MJump to Matching Parenthesis
Ctrl+Shift+[Fold Code Block
Ctrl+Shift+]Unfold Code Block

Navigation and Multi-Cursors

ShortcutDescription
Ctrl+PQuick Open File
Ctrl+GGo to Line
Ctrl+RGo to Function/Class Definition
Ctrl+Shift+MSelect Matching Parentheses
Alt+F3Select All Same Words
Ctrl+Alt+DownAdd Cursor Below
Ctrl+Alt+UpAdd Cursor Above

Download Sublime Text Windows Shortcut Keys Cheatsheet PDF

We provide a Sublime Text Windows Shortcut Keys PDF download feature. Click the download button to get the file. Please note that generating the PDF may take some time, so please be patient. Download

Sublime Text MacOS Shortcut Keys

Editing Functions

ShortcutDescription
Command+NNew File
Command+OOpen File
Command+SSave File
Command+Shift+SSave As
Command+WClose Current File
Command+Shift+TReopen Last Closed File
Command+ZUndo
Command+Shift+ZRedo

Find and Replace

ShortcutDescription
Command+FFind
Command+HReplace
Command+Shift+FFind in Folder
Command+Shift+HReplace in Folder
Command+GFind Next
Shift+Command+GFind Previous

Code Editing

ShortcutDescription
Command+DSelect Next Same Word
Command+Shift+DDuplicate Current Line
Command+Shift+KDelete Current Line
Command+LSelect Entire Line
Command+Shift+LSplit Selection into Lines
Command+MJump to Matching Parenthesis
Command+Shift+[Fold Code Block
Command+Shift+]Unfold Code Block

Navigation and Multi-Cursors

ShortcutDescription
Command+PQuick Open File
Command+GGo to Line
Command+RGo to Function/Class Definition
Command+Shift+MSelect Matching Parentheses
Option+Command+GSelect All Same Words
Command+Option+DownAdd Cursor Below
Command+Option+UpAdd Cursor Above

Download Sublime Text MacOS Shortcut Keys Cheatsheet PDF

We provide a Sublime Text MacOS Shortcut Keys PDF download feature. Click the download button to get the file. Please note that generating the PDF may take some time, so please be patient. Download

About Sublime Text

Sublime Text is a highly optimized code editor with rich plugin support, customizable user interface, and powerful features. Whether you're doing frontend development, backend programming, or data analysis, Sublime Text provides developers with an efficient and smooth editing experience.

Sublime Text Official Information

Sublime Text Common Questions

  1. How to customize Sublime Text shortcut keys?
    You can customize shortcut keys by opening "Preferences" -> "Key Bindings." In this file, you can modify existing shortcuts or assign new ones to specific commands.

  2. How to restore the default shortcut keys in Sublime Text?
    If you've modified shortcut keys and want to restore the default settings, simply open the "Key Bindings" file, delete the parts you've modified, and Sublime Text will automatically revert to the default configuration.

  3. How to quickly switch between different tabs in Sublime Text?
    Use the shortcut Ctrl+Tab (Windows/Linux) or Command+Tab (MacOS) to switch to the next tab, and Ctrl+Shift+Tab or Command+Shift+Tab to switch to the previous tab.

  4. Does Sublime Text support multiple cursors? How to use it?
    Yes, Sublime Text supports multiple cursors. Hold down Ctrl (Windows/Linux) or Command (MacOS) and click on different positions in the text, or use Ctrl+Alt+Down (Windows/Linux) or Command+Option+Down (MacOS) to add a cursor to the next line.

  5. How to quickly find and replace content in a file in Sublime Text?
    Use the shortcut Ctrl+F (Windows/Linux) or Command+F (MacOS) to open the find box, enter the content to search for, and press Enter to find the next occurrence. You can also press Ctrl+H (Windows/Linux) or Command+H (MacOS) to open the replace box and replace content.

  6. How to quickly jump to a function or class definition in Sublime Text?
    Use Ctrl+R (Windows/Linux) or Command+R (MacOS) to quickly jump to a function or class definition within the current file.

Summary

Sublime Text is a powerful and efficient text editor. Mastering its shortcut keys can greatly improve productivity. Whether you're developing, editing, or debugging code, shortcuts help you work faster and more conveniently. By referring to the shortcut lists for Windows and MacOS provided in this article, you can better master Sublime Text and enhance your workflow.

5/5 - (1 vote)