Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ Sublime Text 3 practical functions and shortcut keys used to collect     - RedHat Linux source code package installation process (Linux)

- MyCAT read and write separation of MySQL (Database)

- Linux Basics Tutorial: create your own Vim IDE (Linux)

- CentOS / Debian configuration Gitlab 7.1x to build self Git repository (Linux)

- Oracle create a temporary table space group (Database)

- ntop monitoring software configuration and installation (Linux)

- RAID configuration and management under linux (Server)

- Linux text processing tool of sed (Linux)

- PXE + Kickstart automatically install CentOS 6.5 (Linux)

- CentOS 6.5 boot automatically mount the hard drive (Linux)

- Forwarding module with Apache reverse proxy server (Server)

- Configure shared library PCRE (Linux)

- Let MySQL 5.6 support Emoji expression (Database)

- Using the Android interface in Parcelable (Programming)

- VMware virtual machine to install CentOS 7 (Linux)

- Tsung first test installation (Linux)

- JBoss7 configuration - Supports IPv4 and IPv6 dual-stack environment (Server)

- Oracle lag () and lpad () function (Database)

- Raspberry Pi 2 to install the latest version of the FPC and Lazarus 1.5 (Linux)

- How to upgrade Docker 1.6 on Fedora / CentOS (Server)

 
         
  Sublime Text 3 practical functions and shortcut keys used to collect
     
  Add Date : 2017-04-13      
         
         
         
  Here is my video tutorial by the Internet or text information to learn some practical functions and shortcut keys used Sublime Text 3 collected, and now share it, if there are other useful features in the comments below, in order to learn from each other.

PS: ST3 shortcuts in Mac OX difference with Windows a lot of different platforms. Here is the explanation for the windows platform.

1. You can directly open image

Version 3 has a good feature (for the front end of it): can be opened directly in ST3 pictures.


2. Goto Anything function - to quickly find (ctrl + P)

@ + Enter function name you can quickly find function.
Enter # + Text can quickly match the text in the document.

3. Multi-line cursor function (ctrl + D, very practical)

How to change a word in a document to another?
Method 1: Use the Find and Replace function: ctrl + H
Method 2 (recommended): multi-line cursor function, select one, press ctrl + D can also select another, while more than another cursor.

However, multi-line cursor to complete the search and replace function can not be done.
For example, in the back some qualifying statement to add a new line, while adding some new text, how to quickly achieve this goal?
- You can select a particular pattern, then ctrl + D to select another, if some do not want to add a new line pattern press ctrl + K, ctrl + D to skip this into the next qualifying mode line.
- You can also press Alt + F3 keyboard shortcut select all the qualifying word, generating a plurality of cursor instead of one ctrl + D selected.
- If you want to join every row in the cursor, you can ctrl + A then ctrl + shift + L can.
- If you want multiple rows behind a character plus the cursor, the cursor can be placed behind this character, hold down the shift key and right-drag the cursor down to produce a plurality.


4. Command Mode (should be used whenever possible, but do not waste a lot of shortcuts brain cell memory command)

For example, use ctrl + N to create a new file, the default is plain text, no syntax highlighting, syntax how to set up mode?
- You can select the desired set of grammatical syntax mode selection area by the lower right corner.
- There is another better way, using ctrl + shift + P Open a command mode, and then enter the set syntax [language] is set to a language syntax mode, such as it is set to set syntax java java syntax highlighting.
- St3 support fuzzy matching, you can also enter the syntax java or ssjava.
- If the current mode is already the grammar of a language, you can enter other languages switch (instead of entering the set syntax or syntax), for example, of course, for the java syntax mode, you can switch directly into js soon as javascript syntax mode .

You can also enter minimap hide or show the right of the minimap microcosm


5. Quick Jump to a row

Press Ctrl + G, enter the line number, you can quickly jump to the line.


6. Quickly add a new row

Ctrl + Enter can create a new row at the current line.
Ctrl + Shift + Enter to add a row above the current line.

7. Multi-line indent

After selecting multiple lines press Ctrl +] to increase the indent, press Ctrl + [to reduce indentation.
PS: found with Tab and Shift + Tab is also possible.


8. A complete copy format to avoid confusion

We found a copy of a piece of code from other files over time, usually just the first line indent, behind all the chaos, then you can use Ctrl + Shift + V to paste, paste can be maintained in the process of indentation , when the format is correct.


9. Reopen closed tab

In Chrome inside, if you do not accidentally close a tab and want to restore it, you can press Shift + Ctrl + T to reopen it.
In ST3, too, if you do not accidentally close a file, you can press Shift + Ctrl + T to quickly recover. Continuously repeating the key, ST will be closed in accordance with the order to re-open tabs.


10. Hold down the shift + ctrl and press the [left] or [right] to quickly select a line in a certain part of the continuous press to expand the range of options.

For example, you need to be a part of a comment (ctrl + /) or deleted using this feature is very convenient.


11. The line moved up and down

Position the cursor or select a block area, then ctrl [up] [down] can be moved up and down the line press shift + +.


12. shift + ctrl + d can quickly copy an entire row of the cursor, and copied to the line before.


13. Ctrl + Shift + M: Select the entire contents of which do not include the braces {}.


14. Ctrl + Shift + K: delete the entire line.


15. Close the HTML tags quickly

Use shortcut Alt + write html file can quickly close a tab, such as writing < html> and press Alt + can quickly get < / html>.
But this is still very complicated, you can use the front-end plug Emmet plug directly in the new html file (must first set up the syntax mode html) direct input! (On behalf of html5 html document format) and then press ctrl + E to.


Report: How to Install package control

Through the shortcut ctrl + \ `` or View> Show Console` menu to open the console, enter the following Python code execution (for Python3.x interpreter)
     
         
         
         
  More:      
 
- Access clipboard content across multiple vim instances in a terminal (Linux)
- Introduction to Linux system process monitoring tools (Linux)
- Linux file permissions chmod chown (Linux)
- Use JMS listener Oracle AQ, trigger the execution of Java programs in the database changes (Database)
- Dom4j change XML coding (Programming)
- Ubuntu users install the Download Manager software Xdman 5.0 (Linux)
- Observation network performance tools for Linux (Linux)
- Nginx load balancing configuration (http proxy) (Server)
- 11G ASM disk group does not automatically handle MOUNT (Database)
- Distributed Hadoop1.2.1 cluster installation (Server)
- CentOS install expect (Linux)
- Linux 6 use UDEV binding shared storage (Linux)
- Video editing captions under Linux (Linux)
- To install Cinnamon desktop environment on your Ubuntu 14.04 / 12.04 (Linux)
- Redis data types Introduction (Database)
- Android using SVG vector graphics to create cool animation effects (Programming)
- Ubuntu 12.04 64-bit installation Redmine + Git + ReviewBoard (Linux)
- Partition contrast manifestations under Windows and Linux (Linux)
- VirtualBox install Windows 8.1 has encountered an error 0x000000C4 solutions (Linux)
- Linux SSH login without a password (Linux)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.