Sublime Text Tips

Source: Internet
Author: User


Let Sublime text2 support Chinese


Installing the Sublime package Control



On Sublime Text 2, open the console with ctrl+~ and enter the following code in it, Sublime text 2 will automatically install the package control


ImportUrllib2,os; pf='Package Control.sublime-package'; Ipp=sublime.installed_packages_path (); Os.makedirs (IPP)if notOs.path.exists (IPP)ElseNone; Urllib2.install_opener (Urllib2.build_opener (urllib2. Proxyhandler ())); Open (Os.path.join (IPP,PF),'WB'). Write (Urllib2.urlopen ('http://sublime.wbond.net/'+pf.replace (' ','%20'). read ());Print('Restart Sublime Text to finish installation')


Restart Sublime Text 2



Then use Ctrl+shift+p to open the command-line mode and enter the install package inside to search for the required package



Generally use "ConvertToUTF8" and "GBK Encoding support" to read and write files in CJK format normally.


Font settings


With the menu Preferences/settings-user, you can modify the font by adding the following line configuration:


"Font_face": "Courier New", "font_size": 10
The save will take effect immediately.


Other configurations can be viewed through the Preferences/settings-default menu. In sublime text, there are a lot of things that can be customized



Sublime Text Tips


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.