Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ Sublime Text 3 practical functions and shortcut keys used to collect     - How to manage your to-do list with the Go For It on Ubuntu (Linux)

- Java memory mechanism Description (Programming)

- Debian Stable (Jessie 8.1) of normal.mod not found (Linux)

- Ubuntu install driver manager Mint Driver Manager and Device Driver Manager (Linux)

- To install and deploy Apache under the CentOS (Server)

- JavaScript common functions summary (Programming)

- Monitoring network traffic with Iptraf in Linux environment (Linux)

- Mac Docker deploy development environment (Server)

- MongoDB 2.6 deployment replica set + partitions (Database)

- Ubuntu Telnet service settings (Linux)

- The Java development environment to build under Ubuntu 14.04 (Linux)

- How to determine whether the Linux server was hacked (Linux)

- Linux 4.0+ kernel support for hardware switching module (HW Switch Offload) (Linux)

- How to use the process on the desktop xkill end Linux (Linux)

- Linux script to copy the folder to all folders with the same name (Linux)

- Python, and / or (Programming)

- CentOS / Linux NIC set IP address configuration (Linux)

- MySQL loose index scan (Database)

- JavaScript function part (Programming)

- Linux common network tools: traceroute routing of scanned (Linux)

  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)
- Install KVM on Ubuntu and build a virtual environment (Linux)
- Linux Oracle delete archived logs (Database)
- C # mobile side and PC-side data exchange (Database)
- Samhain: Powerful intrusion detection system under Linux (Linux)
- Via Twitter how open source library to be used anywhere Emoji emoticons (Linux)
- C # how to generate a folder or file automatically rename (Programming)
- Batch download files using the explorer under Windows Server 2008 R2 (Server)
- Linux operating system Start Tutorial: Xmanager Remote Access Linux graphical interface (Linux)
- Linux beginners to develop the seven habits (Linux)
- SYN attack hacker attack and defense of the basic principles and prevention technology (Linux)
- C # Future: Method Contract (Programming)
- Linux process scheduling opportunity (Programming)
- Use custom backup plans for Debian backupninja (Linux)
- Sniffer Linux Environment (Linux)
- Linux server alarms using Java (Server)
- Linux file permissions chmod chown (Linux)
- CentOS 6.5 three ways to configure the IP address (Linux)
- Ubuntu 14.04 to install Blender 2.71 (Linux)
- CentOS / Linux restart active NIC connection paths / network configure error Error Resolution (Linux)
- Configuring ftp server and nfs server under Linux (Server)
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.