Installation and encoding of the sublime-TXT editor and plug-in settings in Linux

Source: Internet
Author: User

Sublime-txt is a free-of-Installation Software. Go to the official website and find the corresponding system version to download and decompress the sublime-TXT file in the compressed file.

1. Open and runSublime-txt

2. FirstInstall package install

Installation Method:

CTRL + ~

Enter the following content in the window and press Enter:

Import urllib2, OS; pF = 'package control. sublime-package '; IPP = sublime. installed_packages_path (); OS. makedirs (IPP) if not OS. path. exists (IPP) else none; 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 'Please restart sublime text to finish installation'

Restart the editor after the prompt is complete.

Then pressCrtl + Shift + PCall the Package Manager,Install other plug-in packages you need:

(Crtl + Shift + P and then enter packe in the upper pane... the installpack will be automatically found ...... Press enter to wait for the installation to complete)

Script syntax supported

Crtl + shif + PInputSet Syntax:The names of the languages you want (for exampleSet Syntax: PHP, set Syntax: c)

Set encoding:

On the top menu bar, find preferences-> Settings-user and add the following black parts to the opened file:"Default_encoding": "UTF-8" Save and restart,Remember that the comma at the end cannot be in a disordered order.

{
"Color_scheme": "packages/color scheme-default/solarized (dark). tmtheme ",
"Default_encoding": "UTF-8 ",
"Ignored_packages ":
[
"Vintage"
]
}

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.