Sublime Text 3 installation and configuration

Keywords: sublime

Download, install, activate

First, at Official download address Download the installation file of the corresponding operating system.

Then, activate the software with the following registration code:

—– BEGIN LICENSE —–
TwitterInc
200 User License
EA7E-890007
1D77F72E 390CDD93 4DCBA022 FAF60790
61AA12C0 A37081C5 D0316412 4584D136
94D7F7D4 95BC8C1C 527DA828 560BB037
D1EDDD8C AE7B379F 50C9D69D B35179EF
2FE898C4 8E4277A8 555CE714 E1FB0E43
D5D52613 C3D12E98 BC49967F 7652EED2
9D2D2E61 67610860 6D338B72 5CF95C69
E36B85CC 84991F19 7575D828 470A92AB
- END LICENSE -

Install Package Control components

Press Ctrl + 'to open console. If the shortcut key is invalid, it may be the cause of other software hotkey conflicts. A simple way to do this is to open sublime configuration preferences - > key bindings, and find the hotkey configuration item to open the console in line 260 of the default configuration file

{ "keys": ["ctrl+`"], "command": "show_panel", "args": {"panel": "console", "toggle": true} },

Write a new hotkey in the user profile to overwrite the original shortcut key, for example:

{ "keys": ["ctrl+shift+c"], "command": "show_panel", "args": {"panel": "console", "toggle": true} },

If you configure according to the above example, then press the assembly Ctrl+Shift+C to open the console.

Open the console, copy the following contents in the console and enter:

import urllib.request,os;
pf = 'Package Control.sublime-package'; 
ipp = sublime.installed_packages_path(); 
urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); 
open(os.path.join(ipp, pf), 'wb').write(urllib.request.urlopen( 'http://sublime.wbond.net/' + pf.replace(' ','%20')).read())

Restart Sublime Text 3. If you see Package Control in preferences - > package settings, the installation is successful.

Open the default shortcut key of Package Control: Ctrl+Shift+P.

Basic configuration

Common configurations are set in preferences - > settings. Again, now look in the default profile to see what can be changed, and then add it to the user profile as needed. Some common personal configurations are:

{
    "always_show_minimap_viewport": true,
    "auto_complete": true,
    "caret_extra_width": 2,
    "caret_style": "solid",
    "draw_minimap_border": true,
    "draw_white_space": "all",
    "font_face":"Consolas",
    "font_size": 12,
    "highlight_line": true,
    "ignored_packages":
    [
        "Vintage"
    ],
    "line_padding_bottom": 1,
    "line_padding_top": 1,
    "rulers":
    [
        70
    ],
    "save_on_focus_lost": true,
    "show_encoding": true,
    "show_line_endings": true,
    "tab_completion": true,
    "trim_trailing_white_space_on_save": true,
    "word_wrap": true
}

Use Package Control to install plug-ins. Common plug-ins:

  • ConvertToUTF8
  • SideBar Enhancements
  • Emmet
  • Evernote

Some other plug-in configuration skills and sublime text3 experience, let's talk about it later.

Posted by Aaron111 on Sat, 02 May 2020 05:38:37 -0700