search
HomeDevelopment ToolssublimeSummary of shortcut keys for Sublime Text 3

In the process of using Sublime Text3, I have experienced the convenience of using shortcut keys. Here, the sublime usage tutorial column summarizes the shortcut keys in SublimeText3. I hope Help those in need!

Summary of shortcut keys for Sublime Text 3

Select Category

Ctrl D Select the text occupied by the cursor. If you continue the operation, the next same text will be selected.

Alt F3 Select text and press the shortcut key to select all the same text at once for editing at the same time. For example: quickly select and change all the same variable names, function names, etc.

Ctrl L selects the entire line. If you continue to operate, you will continue to select the next line. The effect is the same as Shift ↓.

Ctrl Shift L First select multiple lines, and then press the shortcut key. The cursor will be inserted at the end of each line, and you can edit these lines at the same time.

Ctrl Shift M Select the content within the brackets (continue to select the parent brackets). For example: quickly select to delete the code in the function, rewrite the function body code or rewrite the content inside the brackets.

Ctrl M Move the cursor to the end or beginning position within the brackets.

Ctrl Enter inserts a new line on the next line. For example: even if the cursor is not at the end of the line, you can quickly insert a line downwards.

Ctrl Shift Enter inserts a new line on the previous line. For example: even if the cursor is not at the beginning of the line, you can quickly insert a line upwards.

Ctrl Shift [Select the code, press the shortcut key, and collapse the code.

Ctrl Shift ] Select the code and press the shortcut key to expand the code.

Ctrl K 0 Expand all folded codes.

Ctrl ← Move the cursor unitarily to the left and move the cursor quickly.

Ctrl → Move the cursor unitarily to the right and move the cursor quickly.

shift ↑ Select multiple lines upward.

shift ↓ Select multiple lines downwards.

Shift ← Select text to the left.

Shift → Select text to the right.

Ctrl Shift ← Select text unitarily to the left.

Ctrl Shift → Select text unitarily to the right.

Ctrl Shift ↑ Swap the line where the cursor is and the previous line of code (insert the line where the cursor is before the previous line).

Ctrl Shift ↓ Swap the line where the cursor is and the next line of code (insert the line where the cursor is after the next line).

Ctrl Alt ↑ Add multi-line cursor upward to edit multiple lines at the same time.

Ctrl Alt ↓ Add multi-line cursor downward to edit multiple lines at the same time.

Edit Class

Ctrl J merges selected multiple lines of code into one line. For example: merge CSS properties in multi-line format into one line.

Ctrl Shift D Copy the entire line where the cursor is and insert it into the next line.

Tab indents to the right.

Shift Tab indents to the left.

Ctrl K K Delete code from the cursor to the end of the line.

Ctrl Shift K Delete the entire line.

Ctrl / Comment single line.

Ctrl Shift / Comment multiple lines.

Ctrl K U Convert to uppercase.

Ctrl K L Convert to lowercase.

Ctrl Z Undo.

Ctrl Y Undo.

Ctrl U soft undo, feels the same as Gtrl Z.

Ctrl F2 Set bookmark

Ctrl T Swap left and right letters

F6 Word detection spelling

Search category

Ctrl F Open the search box at the bottom and search for keywords.

Ctrl shift F Search within a folder. The difference from ordinary editors is that sublime allows you to add multiple folders for search. It is slightly advanced and has not been studied yet.

Ctrl P opens the search box. For example: 1. Enter the file name in the current project to quickly search the file. 2. Enter @ and keywords to find the function name in the file. 3. Enter: and a number to jump to the line of code in the file. 4. Enter # and keywords to find variable names.

Ctrl G opens the search box, automatically with:, enter the number to jump to the line of code. For example: quickly locate files with long page codes.

Ctrl R Open the search box, automatically add @, enter keywords to find the function name in the file. For example: quickly search for a function on a page with many functions.

Ctrl: Open the search box, automatically add #, enter keywords, and search for variable names, attribute names, etc. in the file.

Ctrl Shift P opens the command box. Scenario example: Open the naming box, enter keywords, and call the function of sublime text or plug-in, such as using package to install the plug-in.

Esc exits cursor multi-line selection, exits search box, command box, etc.

Display class

Ctrl Tab switches the tabs of the current window in the order in which the files have been browsed.

Ctrl PageDown switches the tabs of the current window to the left.

Ctrl PageUp switches the tabs of the current window to the right.

Alt Shift 1 window split screen, restore the default 1 screen (non-keypad numbers)

Alt Shift 2 left and right split screen - 2 columns

Alt Shift 3 left and right split Screen-3 columns

Alt Shift 4 Left and right split screen-4 columns

Alt Shift 5 Equally divide 4 screens

Alt Shift 8 Vertical split screen-2 screens

Alt Shift 9 Vertical split screen-3 screens

Ctrl K B Turn on/off the sidebar.

F11 Full Screen Mode

Shift F11 Do Not Disturb Mode

The above is the detailed content of Summary of shortcut keys for Sublime Text 3. For more information, please follow other related articles on the PHP Chinese website!

Statement
This article is reproduced at:segmentfault. If there is any infringement, please contact admin@php.cn delete
Sublime Text: The Cost of a Powerful EditorSublime Text: The Cost of a Powerful EditorMay 05, 2025 am 12:04 AM

SublimeText is worth buying. 1) Its simple interface and powerful functions, such as multi-line editing and GotoAnything, improve development efficiency. 2) Rich plug-in ecosystem, such as Anaconda, enhances the development experience. 3) Although the price is $70, its performance and fluency are great value for professional developers.

Sublime Text: Code Completion, Syntax Highlighting, and MoreSublime Text: Code Completion, Syntax Highlighting, and MoreMay 04, 2025 am 12:04 AM

SublimeText is loved by developers for its powerful code completion and syntax highlighting capabilities. 1) Code completion can automatically prompt function names, variable names, etc. to improve programming efficiency. 2) Syntax highlighting distinguishes code elements through different colors to improve readability and error detection speed.

Sublime Text vs. VS Code: A Comparative AnalysisSublime Text vs. VS Code: A Comparative AnalysisMay 03, 2025 am 12:07 AM

SublimeTextisidealforthosevaluingspeedandsimplicity,whileVSCodesuitsthoseneedingextensivefeaturesandcustomization.SublimeTextoffersquickfileaccesswith"GotoAnything"andaminimalisticapproach,butmaylackout-of-the-boxfunctionality.VSCodeprovide

Sublime Text: Your Coding CompanionSublime Text: Your Coding CompanionMay 02, 2025 am 12:01 AM

SublimeTextisapowerfulcodingcompanionduetoitsspeed,customization,andkeyfeatures.1)Itoffersincrediblespeedforhandlinglargefiles.2)Itsflexibilityallowsextensivecustomizationwithpluginsandthemes.3)Featureslikemultiplecursors,GotoAnything,CommandPalette,

Choosing Between Sublime Text and VS Code: Which Editor is Best?Choosing Between Sublime Text and VS Code: Which Editor is Best?May 01, 2025 am 12:03 AM

SublimeText is more suitable for users who work with large files and prefer lightweight editors, while VSCode is more suitable for users who need IDE capabilities and powerful scalability. 1.SublimeText is known for its speed and simplicity, and is suitable for handling large files. 2.VSCode is known for its scalability and Microsoft support, and is suitable for users who need IDE capabilities.

Sublime Text: An Introduction to the Code EditorSublime Text: An Introduction to the Code EditorApr 30, 2025 am 12:11 AM

SublimeText is a powerful and flexible code editor that is worthy of exploration by programmers. 1) It supports multiple selection and editing, allowing multiple locations to be modified at the same time. 2) The plug-in system is rich and extensible. 3) The basic usage is intuitive, and the advanced usage includes regular expressions and macros. 4) Common errors such as plug-in conflicts can be resolved by uninstalling or adjusting the configuration. 5) Performance optimization is achieved through management plug-ins and configuration files.

Sublime Text for Developers: A Guide to Using the EditorSublime Text for Developers: A Guide to Using the EditorApr 29, 2025 am 12:15 AM

SublimeText is popular among developers for its fast, powerful and rich plug-in ecosystem. 1. Multi-line editing and multi-cursor functions allow multiple text modifications at the same time. 2. Command panel and shortcut keys improve operation efficiency. 3. Use PackageControl management plug-in to meet various development needs. SublimeText is ideal for developers to improve programming efficiency.

Sublime Text: Exploring Pricing and AvailabilitySublime Text: Exploring Pricing and AvailabilityApr 28, 2025 am 12:03 AM

SublimeText is priced at $99 (starting from personal and commercial licenses), with a one-time purchase model that supports Windows, macOS and Linux: 1. A free trial version is available, and it is permanently used after purchase and is updated; 2. It can be downloaded from the official website or third-party store, but it is recommended to purchase from the official website to ensure flexibility.

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools