First, preface
Because the personal work content is too complex, memory is not good, for the convenience of later use, so simple record this article about Sublimetext 3 of the initial installation and some plug-in content records. Currently the latest version is also more than 3.0 version, I use and recorded here is also 3.0 version of the use, and the Windows7 64bit system for the installation and use of the environment.
Specific about ST3 have what advantages and highlights, I do not do research and description, direct simple record ST3 the initial installation and part of the plug-in related content, for personal access and use.
Second, Sublimetext 3 installation
The official website of Sublimetext provides the installation package for each system, we can selectively download according to the actual situation of our system environment. We have selected instructions for installing the package in the WINDOW7 64bit installation environment.
For WINDOW7 64bit environment, we can choose two kinds of installation packages: "Windows Bit" & "portable version", I am here for the sake of convenience, directly under the "protableversion", This version can be used directly by decompression.
Note : For the convenience of subsequent use, I have manually added the "ST3" installation path to the "environment variable".
Website address: HTTP://WWW.SUBLIMETEXT.COM/3
Third, sublime plug-in installation process
1, the first step: need to install the plug-in "management tool"
(1) Tool Name: Package Control Component
(2) Installation method: Direct access to the official page, copy the corresponding version of the code into the console (open the console method: "ctr+", or click on the menu View, Show Console), after the installation is complete, restart the ST3, You can see the "Package Control" at the bottom of the preferences.
Specific official link: https://packagecontrol.io/
Official Code Link: https://packagecontrol.io/installation
2, the second step: Install "installed package"
Installation method: Directly open "Package Control", fuzzy input IP can see "Install package", enter the installation is complete.
3, the third step: the installation of various types of plug-ins, here a brief description of the steps to install the plug-in, the specific process is as follows
(1) Open the "Package Control" management interface, there are two ways to open.
-Method 1: Find "package control" directly in the menu, menu open Path Preferences---> Package control;
-Method 2: Use shortcut key to open, shortcut key combination is "Ctrl+shift+p"
(2) Open the "Install package", the specific way can be directly input fuzzy matching key "IP", the first content is "install package", enter into the plug-in search and installation interface;
(3) Enter the plug-in installation interface, directly enter the name of the plug-in you need to install (as long as you can search for matches), you can enter to complete the installation.
Four, plug-in installation examples
1. Installation process
(1) Ctrl+shift+p shortcut key into the "package control" management interface;
(2) Enter the IP and enter the "Package Control:install" interface;
(3) Input sublimetmpl, matching find "Sublimetmpl" plug-in, enter to complete the installation of plug-ins;
(4) Press ESC to exit the plug-in installation interface.
2. Installation Verification
(1) Ctrl+shift+p shortcut key into the "package control" management interface;
(2) Enter list and return to view the plugins we have installed and check if Sublimetmpl is already included.
V. Plug-in collection and collation
1, plug-in:ConvertToUTF8
Plug-in function: ConvertToUTF8 can be in addition to UTF8 encoding other encoding files in Sublime Text transfer to UTF8 encoding, the opening of the file at the beginning of the display garbled, and then a flash automatically display the normal font, of course, The encoding format of the original file does not change after saving the file.
2. Brackethighlighter Plug-in
plug-in Features: highlight matching brackets, quotes, and labels.
3. Less plugins
Plugin Features: Less syntax highlighting.
4. Emmet Plug-in
Plugin Features: Emmet's predecessor was the famous Zen Codin. Front-end development essentials, HTML, CSS code to quickly write artifacts.
5. Alignment plug-in
Plug-in features: automatic alignment of code formats.
How to use: Shortcut key Ctrl+alt+a, may conflict with QQ, one of the two to reset the shortcut key.
6. Autofilename Plug-in
plugin function: auto- Complete file (directory) name.
7, plug-in: Sublimetmpl
Plugin features: Quickly generate script file templates
Sublimetmpl Default shortcut keys:
(1) Ctrl+alt+h HTML
(2) Ctrl+alt+j JavaScript
(3) Ctrl+alt+c CSS
(4) Ctrl+alt+p PHP
(5) Ctrl+alt+r Ruby
(6) Ctrl+alt+shift+p python
Vi. shortcut key collection and collation
1 , General
↑↓←→ move cursor up or down
Alt to bring up the menu
Ctrl + Shift + P bring up command Palette
Ctrl + ' bring up the console
2, the corresponding shortcut keys and sub-screen situation are as follows:
Alt+shift+1 Single Screen
Alt+shift+2 Columns:2 Vertical Two-column split screen
Alt+shift+3 Columns:3 Vertical Three-column split screen
Alt+shift+4 columns:4 Vertical Four-bar split screen
Alt+shift+8 Rows:2 Horizontal Two-column split screen
Alt+shift+9 Rows:3 horizontal three-column split screen
ALT+SHIFT+5 Grid four format split screen
3. Jump
Ctrl + P jumps to the specified file, and after entering the filename, you can:
@ symbol jump input @symbol jump to the location where the symbol sign is located
# keyword Jump input #keyword jump to the location where keyword is located
: Line number jump input: 12 jump to the 12th line of the file.
Ctrl + R jumps to the specified symbol
Ctrl + G jumps to the specified line number
4. Windows
Ctrl + Shift + N Create a new window
Ctrl + N Creates a new tab in the current window
Ctrl + W Closes the current tab and closes the window when no label is in the window
Ctrl + Shift + T restores the label just closed
Vii. FAQ
1. Configure Python Hotkey
Shortcut key configuration method, as follows:
"Preference" → "Key bindings", add the following content
[
{"Keys": ["F7"], "command": "Toggle_setting", "args": {"setting": "Word_wrap"}},
{"Keys": ["F5"], "caption": "Sublimerepl:python-run Current File", "command": "Run_existing_window_command", "args": {" ID ":" repl_python_run "," File ":" Config/python/main.sublime-menu "}}
]
Reference Link: http://www.cnblogs.com/pcat/p/5499964.html
2, execute the shortcut key, run the Python foot this newspaper wrong
error message: filenotfounderror (2, ' The system cannot find the file specified. ', None, 2)
handling method: error because the python environment variable is not found, open the preferences -> Package settings ->sublimerepl -> Settings - user
After
R, add the following code to resolve the issue. ,
{"default_extend_env": {"PATH": "C:\\Program Files (x86) \\Python 3.5"},}
Reference connection:
Http://stackoverflow.com/questions/28952282/repl-error-with-sublime-text-3
Http://www.cnblogs.com/zhangronghua/p/PythonEnvironmentAtSublimetext3.html
Python's development tool Sublimetext 3