1. install packages
CTRL + '(the one on the left)
Enter the following command:
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())
2,Preferences> Settings-userBasic Configuration:
{ "auto_indent": true, "auto_match_enabled": false, "color_scheme": "Packages/User/LAZY (SL).tmTheme", "detect_indentation": true, "draw_centered": false, "draw_minimap_border": true, "draw_white_space": "selection", "font_options": [ "subpixel_antialias" ], "font_size": 14.0, "gutter": true, "highlight_line": true, "ignored_packages": [ "Vintage", "Markdown" ], "line_numbers": true, "line_padding_bottom": 0, "line_padding_top": 2, "match_brackets": true, "scroll_past_end": true, "tab_size": 4, "update_check": false, "use_tab_stops": true, "word_wrap": true,}
3. Some basic plug-ins:
- Emmet: Required.
- Fileheader: Automatically add comments to the file.
- Tortoisesvn: Used with the tortoisesvn client.
- Filediffs: File comparison plug-in.
- Brackethighlighter: Highlight matching parentheses, quotation marks, and tags
- Trailingspaces: Highlight unnecessary spaces and tabs
- Jquery: Required plug-ins
- Alignment: Equal sign alignment
- Zencoding: A front-end development plug-in that has to be used. Write less, show more. Can be used directly after installation. The Tab key is triggered. Alt + Shift + W is a code machine.
- Alignment: Code alignment, such as writing several variables, selecting these lines, CTRL + ALT + A, wow, all.
- Prefixr: Private suffixes such as-WebKit can be automatically added when writing CSS, which are triggered by CTRL + ALT + X.
- Tag: HTML format, right-click auto-format tags on ducument.
- Clipboard history: Clipboard history, show more historical copies, CTRL + Shift + V triggered.
- Sidebarenhancements: The function of right-click the sidebar is enhanced, which is very practical.
- Theme-soda: The Perfect encoding topic, which has always been used. Add "theme" to the setting User: "soda dark. sublime-Theme"
- GBK to utf8: Convert the file encoding from GBK to utf8. Find the file in the menu-file.
- SFTP: Directly edit the files on the FTP or SFTP server, absolutely FTP floating cloud
- WordPress: Integrate some WordPress functions, which are especially useful for people who often want to write WP templates and plug-ins like me.
- Phptidy: Organize PHP code for typographical layout
- Yui Compressor: Compressing JS and CSS files
- Codeformatter: Code formatting
Note: it may be that QQ is in conflict with this. You can set the shortcut key by yourself.
Open preferences => package settings => alignment => key bindding-user
Then write:
[ { "keys": ["ctrl+alt+f"], "command": "alignment" }]
Sublime text pre-section configuration