Home Web Front-end HTML Tutorial Practical summary of Sublime Text3 shortcut keys

Practical summary of Sublime Text3 shortcut keys

Mar 20, 2017 pm 02:47 PM
shortcut key

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 of this Website
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

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

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Keyboard shortcut for quickly merging cells in Word Keyboard shortcut for quickly merging cells in Word Feb 18, 2024 pm 12:08 PM

Word shortcut keys for merging cells When editing tables using Microsoft Word, we often need to merge cells in order to adjust the structure and layout of the table. Word provides several ways to merge cells, including using shortcut keys. This article will introduce the shortcut keys for merging cells in Word to help you operate tables more efficiently. In Word, you can use shortcut keys to merge cells. The following are some commonly used shortcut keys for merging cells: Ctrl+Shift+

How to solve the problem that the NVIDIA graphics card screen recording shortcut key cannot be used? How to solve the problem that the NVIDIA graphics card screen recording shortcut key cannot be used? Mar 13, 2024 pm 03:52 PM

NVIDIA graphics cards have their own screen recording function. Users can directly use shortcut keys to record the desktop or game screen. However, some users reported that the shortcut keys cannot be used. So what is going on? Now, let this site give users a detailed introduction to the problem of the N-card screen recording shortcut key not responding. Analysis of the problem of NVIDIA screen recording shortcut key not responding Method 1, automatic recording 1. Automatic recording and instant replay mode. Players can regard it as automatic recording mode. First, open NVIDIA GeForce Experience. 2. After calling out the software menu with the Alt+Z key, click the Open button under Instant Replay to start recording, or use the Alt+Shift+F10 shortcut key to start recording.

How to use shortcut keys to take screenshots in Win8? How to use shortcut keys to take screenshots in Win8? Mar 28, 2024 am 08:33 AM

How to use shortcut keys to take screenshots in Win8? In our daily use of computers, we often need to take screenshots of the content on the screen. For users of Windows 8 system, taking screenshots through shortcut keys is a convenient and efficient operation method. In this article, we will introduce several commonly used shortcut keys to take screenshots in Windows 8 system to help you take screenshots more quickly. The first method is to use the "Win key + PrintScreen key" key combination to perform full

What is the shortcut key to shut down the computer? What is the shortcut key to shut down the computer? What is the shortcut key to shut down the computer? What is the shortcut key to shut down the computer? Feb 22, 2024 pm 02:34 PM

The shutdown shortcut key for Windows desktop computers is ALT+F4; the shutdown shortcut key for Windows laptops is Alt+Fn+F4; the shutdown shortcut key for Apple computers is Ctrl+Option+Power key. Analysis 1 If it is a Windows desktop computer, the shortcut key for shutting down is ALT+F4. After pressing the key, the shutdown interface will pop up. Simply press the Enter key to complete the shutdown. 2. If it is a Windows laptop, the shortcut key to shut down is Alt+Fn+F4, and then press the Enter key to complete the shutdown. 3. If it is an Apple computer, then the shutdown key is Ctrl+Option+Power key to complete the shutdown. Supplement: What are the computer shortcut keys? 1 The computer shortcut keys are: C

What is the shortcut key for renaming? What is the shortcut key for renaming? What is the shortcut key for renaming? What is the shortcut key for renaming? Feb 22, 2024 pm 02:50 PM

The shortcut key for renaming is F2. Analysis 1 The shortcut key for renaming is F2. 2 If you want to rename a file or folder, you can press F2 after selecting the file, modify it directly and press Enter. 3 Sometimes you can also use the mouse to select the file, right-click, select Rename, and press Enter after the modification is completed. 4 Shortcut keys refer to the special combination or sequence of keys on the keyboard to quickly complete a certain command, which can effectively improve work efficiency. Supplement: What are shortcut keys? 1 Shortcut keys, also called hot keys, refer to completing an operation through certain specific keys, key sequences or key combinations. You can use shortcut keys to do some work instead of the mouse. You can use keyboard shortcuts to open, close, and navigate the start menu, desktop, menus, and dialog boxes.

How to quickly refresh a web page? How to quickly refresh a web page? Feb 18, 2024 pm 01:14 PM

Page refresh is very common in our daily network use. When we visit a web page, we sometimes encounter some problems, such as the web page not loading or displaying abnormally, etc. At this time, we usually choose to refresh the page to solve the problem, so how to refresh the page quickly? Let’s discuss the shortcut keys for page refresh. The page refresh shortcut key is a method to quickly refresh the current web page through keyboard operations. In different operating systems and browsers, the shortcut keys for page refresh may be different. Below we use the common W

Why doesn't Win11 show more options have shortcut keys? Details Why doesn't Win11 show more options have shortcut keys? Details Jan 31, 2024 pm 09:06 PM

The Show More Options function can help users quickly find the functions they want and allow users to quickly explore. So why does Win11 Show More Options have no shortcut keys? For details, users can check to see if their keyboard is locked. Let this website carefully introduce to users how to directly display more options in Win11. How to directly display more options in Win11 Method 1: 1. First, we must ensure that our keyboard can be used. 2. Confirm whether the keyboard is damaged or locked. (You can try typing it) 2. Then enter gpedit.msc during runtime and press Enter to open the group policy. 4. Then enter the file explorer under the list on the left. 6. Check

Learn to copy and paste quickly Learn to copy and paste quickly Feb 18, 2024 pm 03:25 PM

How to use the copy-paste shortcut keys Copy-paste is an operation we often encounter when using computers every day. In order to improve work efficiency, it is very important to master the copy and paste shortcut keys. This article will introduce some commonly used copy and paste shortcut keys to help readers perform copy and paste operations more conveniently. Copy shortcut key: Ctrl+CCtrl+C is the shortcut key for copying. By holding down the Ctrl key and then pressing the C key, you can copy the selected text, files, pictures, etc. to the clipboard. To use this shortcut key,

See all articles