Sublime Text Usage Introduction

Source: Internet
Author: User

Brief introduction

A word about sublime Text (ST):

Incredibly sexy code Editor! The programmer must be an artifact!

Document
    • Official documentation: Sublime Text 3 Documentation
    • Official documentation also provides an unofficial link to the document: Sublime text unofficial documentation, the above content is very comprehensive, there is time to look at, and constantly updated, you can download the full text.
Download and install

I use ST3, is still a beta version, but more than ST2 added a lot of improvements, so can't wait to use the ~
We recommend downloading the green version, download the extract to the appropriate directory to use:

    • 32 Guests
    • 64 guests
Install key
Andrew WeberSingle User LicenseEA7E-855605813A03DD 5E4AD9E6 6C0EEB94 BC99798F942194A6 02396E98 E62C9979 4BB979FE91424C9D A45400BF F6747D88 2FB8807890F5CC94 1CDC92DC 8457107A F151657B1D22E383 A997F016 42397640 33F41CFCE1D0AE85 A0BBD039 0E9C8D55 E1B89D5D5CDB7036 E56DE1C0 EFCC0840 650CD3A6B98FC99C 8FAC73EE D2B95564 DF450523
Configuration

St Since its launch, with its sexy to receive the vast number of procedural ape welcome, for which they developed a large number of open source plug-ins. Later use to replenish ~

Add and remove right-click menus
    • New "Add to right-click menu. reg" File, enter the following, double-click to add to the right button. Note Change to your own installation directory.
Windows Registry Editor Version 5.00[HKey_Classes_Root\*\shell\sublimeText 3]"Icon" = "F:\\Program Files\\Sublime text\\Sublime Text Build 3083\\Sublime_text.exe, 0 "[HKey_Classes_Root\*\shell\sublimeText 3\command]@= "F:\\Program Files\\Sublime text\\Sublime Text Build 3083\\Sublime_text.exe%1 "
    • Create a new "delete. Reg" file from the right-click menu, enter the following, and double-click Execute to delete from right.
Windows Registry Editor Version 5.00[-HKEY_CLASSES_ROOT\*\shell\Sublime Text 3\Command][-HKEY_CLASSES_ROOT\*\shell\Sublime Text 3]
Package Control

An excellent package management plugin
For ST3, install the following:
Click View Show Console and copy the following code to complete the installation:

Import Urllib.request,os,hashlib; h =' eb2297e1a458f27d836c04bb0cbaf282 '+' d0e7a3098092775ccb37ca9d6b2e4b7d '; PF =' Package control.sublime-package '; IPP = Sublime.installed_packages_path (); Urllib.request.install_opener (Urllib.request.build_opener (Urllib.request.ProxyHandler ())); by= Urllib.request.urlopen (' http://packagecontrol.io/'+ PF.Replace("','%20 ')).Read(); DH = hashlib.sha256 ( by). Hexdigest (); Print' Error validating download (got%s instead of%s), please try manual install '% (DH, h))ifDH! = hElse Open(Os.path.join (IPP, PF),' WB ').Write( by)

Restart St is required after installation.
The shortcut key to start the package control is Ctrl+Shift+P that many commands are displayed when you open it, such as

    • ipmeans installing additional plugins
    • rpIndicates removal of plugins, etc.
    • epIndicates that plug-ins are enabled
    • dpIndicates disabling plug-ins
    • upIndicates an upgrade plugin

The above is abbreviated, you need to select the correct command in the drop-down option, and there are many other commands. Use it to install and manage many plug-ins that add efficiency.

Autofilename

Auto-Complete file path name, especially suitable for writing HTML. For example, when writing an IMG tag, SRC will pop up the path hint.

Brackethighlighter

A plug-in highlighting {}, [], ",", and the left side of the edit area displays the first parenthesis or quotation marks surrounded by the cursor in a particularly conspicuous way.

Docblockr

Displays document tools for method signature descriptions, supports languages such as C/C++/PHP/JAVA/JS, and, when used, type/** and enter or tab to list a well-formed method document description.

Emmet

St Essential plugin, Web Developer's artifact is also extremely powerful, enter a short HTML tag abbreviation can produce a lot of HTML code. Use the method can see Emmet-the essential Toolkit for Web-developers,emmet automatically download install PyV8 plug-in, please wait patiently for its download installs.
such as input

ul#nav>li.item$*4>a{Item$}

Pressing TAB will turn into a

<ul id="nav">    <li class="Item1"><a href="">Item 1</a></li>    <li class="item2"><a href="">Item 2</a></li>    <li class="Item3"><a href="">Item 3</a></li>    <li class="Item4"><a href="">Item 4</a></li></ul>
Hex Viewer

View binary 16 binary plugins in a more humane way. Configures the plug-in Settings - User so that it encounters the specified suffix name file automatically showing a well-formed 16 binary. The contents of this file are modified as follows:

{    "auto_opentrue,    "auto_open_patterns["*.bin", "*.pyc", ".exe"],}
Markdown Preview

Compiles the *.md file into a *.html file, which is stored by default in the current directory after compilation. Shortcut keys are Ctrl+B . In addition, you can preview the *.md compiled Web page file in your browser. The following will configure the shortcut key to Alt+M .

Sidebarenhancements

Extend the functionality of the St native sidebar, such as creating new files, folders, and so on, with only an open project in effect and a single file invalid.

ConvertToUTF8

St default is UTF-8 encoding, encountered non-utf-8 encoded in Chinese garbled display. The plug-in allows Chinese to be displayed normally according to Utf-8 encoding.

Html-css-js prettify

The most powerful HTML+CSS+JS code format plugin to date requires the machine to install Nodejs and configure the Node.exe path in the configuration file. Shortcut keys are Ctrl+Shift+H .

Imesupport

The plugin allows the Chinese input method to move along with the characters entered.

St Settings
{"Auto_find_in_selection":true,//Allow viewing in selected areas    "Bold_folder_labels":true,//Folder font bold in sidebar    "Caret_style":"phase",//Cursor Soft    "Color_scheme":"Packages/color scheme-default/monokai.tmtheme",//Set color theme    "Font_size": One,//Set Font size    "Highlight_line":true,//Highlight Current line    "Highlight_modified_tabs":true,//Highlight changes to unsaved files    "Ignored_packages":    ["Vintage"],//ST automatic Generation    "Margin": -5,//editor left Border setting    "Rulers": [ the, the],//Show column ruler    "Shift_tab_unindent":true,//Set the selected text to indent    "Show_encoding":true,//Bottom right corner showing file current encoding    "Translate_tabs_to_spaces":true,//Set tab to space    "Word_wrap":true //Automatic line wrapping}
Shortcut key Settings
[        { "Keys":["Ctrl+shift+c"], "Command":"Show_panel", "args":{"panel": "Console", "Toggle": true}},//display console by default is CTRL + ', but my computer seems to be invalid, so change to Ctrl+shift+c {"Keys":["Ctrl+enter"], "Command": "Auto_complete" },//The shortcut key to modify the automatic prompt is Ctrl+enter {"Keys":["Shift+enter"], "Command":"Run_macro_file", "args":{"file": "Res://packages/default/add line.sublime-macro"}},//Set open new line shortcut key to Shift+enter {"Keys":["Ctrl+shift+enter"], "Command":"Run_macro_file", "args":{"file": "Res://packages/default/add line Before.sublime-macro"}},//Set open new line shortcut key to Ctrl+shift+enter {"Keys":["Alt+m"], "Command":"Markdown_preview", "args":{"target": "Browser"}}//Set Markdown Preview shortcut key to alt+m]
Shortcut keys
function shortcut Keys
Column Selection shift+ Right-click
Open a file you just closed Ctrl+shift+t
Fullscreen F11
Larger full-screen Shift+f11
Select the same word in multiple places and edit it at the same time (especially for renaming) Ctrl+d; Press ESC to exit
Remove the same word from multiple selections individually Ctrl+u; Press ESC to exit
Split-screen display n windows Alt+shift+n
Two-column Display window Alt+shift+8
Show Method List Ctrl+r, or "@"
Go to line number Ctrl+g, i.e. ":"
Positioning keywords CTRL +;; i.e. "#"
Select a file that is already open Ctrl+p; then use #/@/: Exact Find keyword/method/line number
Look for matching parentheses. Ctrl+m
Move words one by one CTRL + Around key
Select words by Word Ctrl+shift+ around Key
Select a row Ctrl+l
Select all the contents in parentheses Ctrl+shift+m
Renaming files ctrl+shift+p; input Rename
Prev Tab Ctrl+pageup
Next tab page Ctrl+pagedown
Multi-select content, can be discontinuous, like CTRL multi-Select the same CTRL + Left
Capital Ctrl+k+u
Lowercase Ctrl+k+l
Merge rows Ctrl+j
Swap with Previous line ctrl+shift+ on key
Swap with Next line Ctrl+shift+ Next Key
Delete Row Ctrl+shift+k
Copy rows Ctrl+shift+d or Direct Ctrl + V
Edit multiple lines at the same time Ctrl+shift+l
Regular expression-matching switch You can use Alt+r to enable or turn off regular expression matching in ctrl+f or ctrl+h cases
Case Sensitive Switch As above, use Alt+c
Whole Word matching switch As above, use Alt+w
Quickly select the same indented content Ctrl+shift+j
(Multi-line) indent ctr+] or Tab
(Multiple lines) Cancel indent ctr+[or Shift+tab
Line comments and cancellations ctrl+/
Block comments and cancellations ctrl+shift+/; Print if no text is selected/**/
Reference
    1. Sublime TEXT3 Use Summary
    2. My sublime Text 3 configuration
    3. Worth collecting! Divine Code Editor Sublime Text full guide
    4. Emmet Plugin Use tutorial (reprint)
    5. 12 Sublime Text application tips and tricks to know
    6. Getting Started with Sublimetext-youtube
    7. Sublime Text Perfect Workflow 006 Instant File Changing-youtube

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Sublime Text Usage profile

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.