Install Sublime Text 3

Common text editors:
-Notepad
-EditPlus, UltraEdit
-SublimeText, Atom
*Vim

version: Sublime Text 3, Build 3126, 64 bit

1) Download and install
Official website to download and install the program: https://www.sublimetext.com/ , register Code Click here to download.

2) Install Package Control
https://packagecontrol.io/installation#st3
Two methods: console execution, manual installation

3) Install plug-in method

a. Package Control install
Ctrl+Shift+P, enter [install] and select [Package] Control: Install Package], after retrieving the Package, click Install automatically, restart ST if necessary.

b. Manual installation Download the master.zip of the package
from Github, extract it to the package folder and rename it (Preferences > Browse Packages), restart ST if necessary.
Win7 package folder: C:\Users\rensanning\AppData\Roaming\Sublime Text 3\Packages\

4) Chinese
Install the ChineseLocalization plugin

5) Set
Preferences -> Settings The left side is the default setting, and the right side is the user-defined setting.
{
    // ignored plugins
    "ignored_packages":
    [
        "Vintage"
    ],
    // Turn off automatic updates
    "auto_upgrade": false,
    // font type ("Ricty", "Consolas", "Panic Sans")
    "font_face": "Consolas",
    // font size
    "font_size": 11,
    // line spacing
    "line_padding_top": 5,
    // word wrap for long words
    "word_wrap": true,
    // Highlight the current line
    "highlight_line": true,
    // Tab key tab width
    "tab_size": 4,
    // Use a space instead of the Tab key
    "translate_tabs_to_spaces": true,
    // show space or tab
    "draw_white_space": "all",
    // When saving the file, the extra spaces after the end of each line are removed
    "trim_trailing_white_space_on_save": true,
    // default encoding format
    "default_encoding": "UTF-8",
    // Cannot automatically detect the encoding format when encoding
    "fallback_encoding": "UTF-8",
    // The status bar displays the encoding format
    "show_encoding": true,
}


6) Theme
Download the Theme - Soda plugin

and then download colour-schemes.zip and put it in Preference -> Browse Pacakages -> User
http://buymeasoda.github.com/soda-theme/extras/colour-schemes.zip

settings
// Monokai Soda
"theme": "Soda Dark 3.sublime-theme",
"color_scheme": "Packages/User/Monokai Soda.tmTheme",
"soda_classic_tabs": true,
"soda_folder_icons": true,


Other topics:
// Boxy Ocean
"theme": "Boxy Ocean.sublime-theme",
"color_scheme": "Packages/Boxy Theme/schemes/Boxy Ocean.tmTheme",

// Boxy Monokai
"theme": "Boxy Monokai.sublime-theme",
"color_scheme": "Packages/Boxy Theme/schemes/Boxy Monokai.tmTheme",

// Material Theme
"theme": "Material-Theme.sublime-theme",
"color_scheme": "Packages/Material Theme/schemes/Material-Theme.tmTheme"

// Agila Theme
"theme": "Agila.sublime-theme",
"color_scheme": "Packages/Agila Theme/Agila Oceanic Next.tmTheme"


7) The commonly used plug-in
Sublime Text is written in C++ but the plug-in is developed in Python.
  • IMESupport (input method follows cursor)
  • ConvertToUTF8 (transcode file to UTF8)
  • EditorConfig (unified code style between different IDEs)
  • BracketHighlighter (highlight matching brackets, quotes and tags)
  • ColorHighlighter (display selected color)
  • TrailingSpaces (remove extra spaces or tabs at the end of the code)
  • SideBarEnhancements
  • Alignment (smart equal sign alignment)
  • AutoFileName (autocomplete file path)
  • BoundKeys (list of bound shortcut keys)
  • HTMLBeautify (HTML formatting)
  • JSFormat (JS code formatting)
  • Emmet (generates a chunk of code directly from a simple command)
  • SublimeCodeIntel (code autocomplete)
  • All Autocomplete (all open files matching code autocomplete)
  • Local History (smart cache edited files)
  • View in Browser
  • SublimeLinter (code error prompt)
  • jQuery (jQ function prompt)
Usage of each plugin: http://aslanbakan.com/en/blog/33-essential-sublime-text-plugins-for-all-developers/
More popular plugins: https://packagecontrol.io/browse/popular

8) Main function
  • Expand Selection
  • Goto Anything
  • Command Palette
  • Projects
  • Packages/Plugins
  • Themes/Color Schemes
  • Customization(Settings、KeyBindings.etc)
Reference: http://docs.sublimetext.info/en/latest/

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326515000&siteId=291194637