Sublime text pre-section configuration

Source: Internet
Author: User
Tags tortoisesvn

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

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.