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 vs. VS Code: Which is the Best Choice?Sublime Text vs. VS Code: Which is the Best Choice?Apr 15, 2025 am 12:01 AM

Choosing SublimeText or VSCode depends on personal needs: 1. SublimeText is suitable for users who pursue lightweight and efficient editing. It starts quickly but requires a license to purchase. 2. VSCode is suitable for users who need powerful debugging and rich plug-ins. It consumes high resources but is open source and free.

Sublime Text vs. VS Code: Plugin Ecosystems and ExtensibilitySublime Text vs. VS Code: Plugin Ecosystems and ExtensibilityApr 14, 2025 am 12:10 AM

SublimeText and VSCode have their own advantages in plug-in ecology and scalability. SublimeText manages plug-ins through PackageControl, which have a small number of plug-ins but high quality, and mainly uses Python script extensions. VSCode has a huge Marketplace, with a large number of plug-ins and frequent updates. It uses TypeScript and JavaScript to expand, and its API is more comprehensive.

Sublime Text: The Price and Its Value PropositionSublime Text: The Price and Its Value PropositionApr 13, 2025 am 12:06 AM

The license price of SublimeText is $99, which is worth buying because: 1) it provides an efficient editing experience and improves work efficiency; 2) it has a rich plug-in ecosystem to meet personalized needs; 3) it supports cross-platform use and is suitable for different operating systems; 4) it can receive continuous updates and technical support after purchase.

Sublime Text: Customizable and Efficient Code EditingSublime Text: Customizable and Efficient Code EditingApr 12, 2025 am 12:08 AM

SublimeText is a powerful and highly customizable editor. 1) It supports multiple programming languages ​​and provides functions such as multi-line editing, code folding, etc. 2) Users can customize through plug-ins and configuration files, such as using PackageControl to manage plug-ins. 3) Its underlying layer is based on Python, supports multi-threading and GPU acceleration, and has excellent performance. 4) Basic usage includes shortcut key operations, and advanced usage involves macros and Snippets. 5) Frequently asked questions such as failure to install the plug-in, it can be solved by checking the network and updating it. 6) Performance optimization suggestions include cleaning up plug-ins and using cache reasonably.

Sublime Text: License Details ExplainedSublime Text: License Details ExplainedApr 10, 2025 am 09:34 AM

SublimeText's license is a permanent digital key that unlocks all features and removes trial tips. After purchase, it is activated through the official website. The same key can be used for personal use by multiple devices, so you must avoid violations of the terms of use.

Sublime Text Package Control: Mastering Package ManagementSublime Text Package Control: Mastering Package ManagementApr 09, 2025 am 12:08 AM

PackageControl improves the development experience of SublimeText through the following steps: 1. Install PackageControl and use a few lines of command to complete it. 2. Access PackageControl through shortcut keys or menus to install, update and delete plug-ins. 3. Regularly clean and update plug-ins to optimize performance and improve development efficiency. Through these operations, developers can focus on programming and improve the overall development experience.

Sublime Text Project Management: Organizing and Navigating CodebasesSublime Text Project Management: Organizing and Navigating CodebasesApr 08, 2025 am 12:05 AM

SublimeText's project management function can efficiently organize and navigate the code base through the following steps: 1. Create a project file and save the .sublime-project file using SaveProjectAs in the Project menu.... 2. Configure project files, specify the included folders and settings, such as excluding specific files or setting up the build system. 3. Open the project file and quickly load the project environment through OpenProject in the Project menu. 4. Optimize project files to avoid including too many folders, and use the exclusion mode to improve navigation speed. Through these steps, you can use SublimeText's project management capabilities to improve development efficiency and code quality.

Sublime Text Command Palette: Unleash the Power of SublimeSublime Text Command Palette: Unleash the Power of SublimeApr 07, 2025 am 12:17 AM

Using the CommandPalette of SublimeText can improve productivity. 1) Open CommandPalette (Ctrl Shift P/Windows/Linux, Cmd Shift P/Mac). 2) Enter the command keyword, such as "InstallPackage" or "DarkTheme". 3) Select and execute commands, such as installing plug-ins or switching themes. Through these steps, CommandPalette can help you perform various tasks quickly and improve the editing experience.

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

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
1 months agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.