search
HomeWeb Front-endHTML TutorialPractical summary of Sublime Text3 shortcut keys

Today I want to share with you one of my favorite editors——Sublime Text3common shortcuts

I believe that everyone deals with code every day and spends a lot of time The longest one is the editor, and I especially like to use Sublime Text3 this editor because it looks very beautiful and sexy (well, I think so). When you fall in love with it, You will find that it is really easy to use, a very simple and convenient editor. Okay, I won’t continue to praise it. It depends on everyone’s habits, right? Let’s get back to business. Let’s share with you some commonly used shortcut keys to help you become more comfortable when using this editor.

1. Selection shortcut keys:

Ctrl+D occupies the text. If you continue to operate, the next same text will be selected. 's text .

Alt+F3 Select the 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 Select the entire line, and continue to select the next line. The effect is the same as Shift+↓ .

Ctrl+Shift+L First select multiple lines, 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 Insert 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 Insert 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 to collapse the code.

Ctrl+Shift+] Select the code, 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 with the previous line of code (insert the line where the cursor is before the previous line).

Ctrl+Shift+↓ Exchange 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 downwards and edit multiple lines at the same time.

2. Editing shortcut keys:

Ctrl+J Merge 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 Indent to the right.

Shift+Tab Indent 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 lower case.

Ctrl+Z Undo.

Ctrl+Y Undo.

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

Ctrl+F2Set bookmarks

Ctrl+TSwap left and right letters.

F6Word detection spelling

3. Search shortcut key:

Ctrl+F Open the bottom search box 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 Open 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 Open 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, and 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 find variable names, attribute names, etc. in the file.

Ctrl+Shift+P Open 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 Exit cursor multi-line selection, exit search box, command box, etc.

4. Display shortcut keys:

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

Ctrl+PageDown Switch the tabs of the current window to the left.

Ctrl+PageUp Switch the tabs of the current window to the right.

Alt+Shift+1Window 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 divided into 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.

F11Full screen mode

Shift+F11Do not disturb mode

Finally, I hope that practice makes perfect. The more you practice, the longer you will naturally remember it. If there are any shortcomings, please give me your advice, thank you!

Related articles:

7 of the most commonly used Sublime text 3 plug-ins by developers

Detailed introduction to the sample code of 10 Sublime Text plug-ins that are essential for JavaScript developers

Customized sublime text 3 plug-in

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Beyond HTML: Essential Technologies for Web DevelopmentBeyond HTML: Essential Technologies for Web DevelopmentApr 26, 2025 am 12:04 AM

To build a website with powerful functions and good user experience, HTML alone is not enough. The following technology is also required: JavaScript gives web page dynamic and interactiveness, and real-time changes are achieved by operating DOM. CSS is responsible for the style and layout of the web page to improve aesthetics and user experience. Modern frameworks and libraries such as React, Vue.js and Angular improve development efficiency and code organization structure.

What are boolean attributes in HTML? Give some examples.What are boolean attributes in HTML? Give some examples.Apr 25, 2025 am 12:01 AM

Boolean attributes are special attributes in HTML that are activated without a value. 1. The Boolean attribute controls the behavior of the element by whether it exists or not, such as disabled disable the input box. 2.Their working principle is to change element behavior according to the existence of attributes when the browser parses. 3. The basic usage is to directly add attributes, and the advanced usage can be dynamically controlled through JavaScript. 4. Common mistakes are mistakenly thinking that values ​​need to be set, and the correct writing method should be concise. 5. The best practice is to keep the code concise and use Boolean properties reasonably to optimize web page performance and user experience.

How can you validate your HTML code?How can you validate your HTML code?Apr 24, 2025 am 12:04 AM

HTML code can be cleaner with online validators, integrated tools and automated processes. 1) Use W3CMarkupValidationService to verify HTML code online. 2) Install and configure HTMLHint extension in VisualStudioCode for real-time verification. 3) Use HTMLTidy to automatically verify and clean HTML files in the construction process.

HTML vs. CSS and JavaScript: Comparing Web TechnologiesHTML vs. CSS and JavaScript: Comparing Web TechnologiesApr 23, 2025 am 12:05 AM

HTML, CSS and JavaScript are the core technologies for building modern web pages: 1. HTML defines the web page structure, 2. CSS is responsible for the appearance of the web page, 3. JavaScript provides web page dynamics and interactivity, and they work together to create a website with a good user experience.

HTML as a Markup Language: Its Function and PurposeHTML as a Markup Language: Its Function and PurposeApr 22, 2025 am 12:02 AM

The function of HTML is to define the structure and content of a web page, and its purpose is to provide a standardized way to display information. 1) HTML organizes various parts of the web page through tags and attributes, such as titles and paragraphs. 2) It supports the separation of content and performance and improves maintenance efficiency. 3) HTML is extensible, allowing custom tags to enhance SEO.

The Future of HTML, CSS, and JavaScript: Web Development TrendsThe Future of HTML, CSS, and JavaScript: Web Development TrendsApr 19, 2025 am 12:02 AM

The future trends of HTML are semantics and web components, the future trends of CSS are CSS-in-JS and CSSHoudini, and the future trends of JavaScript are WebAssembly and Serverless. 1. HTML semantics improve accessibility and SEO effects, and Web components improve development efficiency, but attention should be paid to browser compatibility. 2. CSS-in-JS enhances style management flexibility but may increase file size. CSSHoudini allows direct operation of CSS rendering. 3.WebAssembly optimizes browser application performance but has a steep learning curve, and Serverless simplifies development but requires optimization of cold start problems.

HTML: The Structure, CSS: The Style, JavaScript: The BehaviorHTML: The Structure, CSS: The Style, JavaScript: The BehaviorApr 18, 2025 am 12:09 AM

The roles of HTML, CSS and JavaScript in web development are: 1. HTML defines the web page structure, 2. CSS controls the web page style, and 3. JavaScript adds dynamic behavior. Together, they build the framework, aesthetics and interactivity of modern websites.

The Future of HTML: Evolution and Trends in Web DesignThe Future of HTML: Evolution and Trends in Web DesignApr 17, 2025 am 12:12 AM

The future of HTML is full of infinite possibilities. 1) New features and standards will include more semantic tags and the popularity of WebComponents. 2) The web design trend will continue to develop towards responsive and accessible design. 3) Performance optimization will improve the user experience through responsive image loading and lazy loading technologies.

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

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

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

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use