Sublime Text 3 Install the package Control

Source: Internet
Author: User

Sublime Text 3 Install the package Control
    • |

    • Browse:2461

    • |

    • Update:

      2014-04-26 18:07

Automatic installation:

1. Open the console via the shortcut key CTRL + ' or View > Show Console Menu

2, paste the corresponding version of the code after the carriage return installation

For Sublime Text 3:

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 ())

For Sublime Text 2:

Import urllib2,os;pf= ' package control.sublime-package '; Ipp=sublime.installed_packages_path (); Os.makedirs (IPP) Ifnotos.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 ());p rint (' Please restart Sublime Text to finish installation ')

Manual Installation:

The first step is to download the zip file in Https://github.com/wbond/sublime_package_control and change the folder name to the package control after extracting it.

The second step is to download the zip file from the plugin branch Https://github.com/wbond/sublime_package_control/tree/python3 and overwrite it with the package control. Complete the update for this plug-in API function.

Finally, put the package control folder into C:\Users\Mr.DenGo (your computer name) \appdata\roaming\sublime text 3\packages, restart Sublime text 3 to take effect.

Sublime text 3 commonly used plugins recommended:

Ctrl+shift+p Call Out window: Enter the Install package

Then enter the plugin you want:

brackethighlighter highlighting matching brackets, quotes, and labels

Brackethighlighter This plugin can highlight matching brackets, quotes, and tags on the left, matching the [], (), {}, "", "", <tag></tag> and even custom tags, when you see the dense code is not clear When you include nested relationships between tags, this plugin is a great way to help you figure out the structure of your code, quickly locating brackets, quotes, and the range within the tag.

Plugin Download: https://github.com/facelessuser/BracketHighlighter/tree/BH2ST3

Trailingspacer highlighting extra spaces and tabs

Sometimes in the end of the code more than a few space or tab, generally do not notice, trailingspacer this plug-in can highlight the extra Space and tab, and can delete them with a button, the code neat friends should like this plugin.

Plugin Download: https://github.com/SublimeText/TrailingSpaces

Note that the plugin downloaded on GitHub is missing a file that sets the shortcut key and can create a new name and suffix for the default (Windows). sublime-keymap file, and add the following code to set "Delete extra spaces" and " Whether to turn on Trailingspacer "shortcut key.

[
{"Keys": ["Ctrl+alt+d"], "command": "Delete_trailing_spaces"},

{"Keys": ["Ctrl+alt+o"], "command": "Toggle_trailing_spaces"}]

Alignment equals alignment

According to Ctrl+alt+a, can be messy code to the equal sign about it, suitable for the code neat friends.

Plugin Download: Https://github.com/kevinsperrine/sublime_alignment/tree/python3

Clipboard-history Paste Board History

With this plugin, it is easy to use sublime text 3 in the Clipboard history content, shortcut keys Ctrl+shift+v can bring up the history panel, press the arrow key to select the history you want to paste. But this is sublime text 2 under the plug-in, Ctrl+shift+d clear pasteboard history does not seem to take effect, but restart Sublime can also clear the history of the pasteboard.

Plugin Download: https://github.com/kemayo/sublime-text-2-clipboard-history

sidebarenhancements Side Bar Enhancements

Sidebarenhancements is a plugin to enhance sidebar, here will teach you how to do sublime text 3 browser Preview plugin, and can customize the browser preview shortcut keys.

To install this plugin, click on the toolbar of Preferences > package setting > Side bar > Key Building-user, type the following code, here set press Ctrl+shift+c to copy the file path, press f1~ F5 in Firefox,chrome,ie,safari,opera browser preview effect, of course, you can also define your favorite shortcuts, and finally note that the browser path in the code to the file path in your own computer.

[
{"Keys": ["Ctrl+shift+c"], "command": "Copy_path"},
Firefox
{"Keys": ["F1"], "command": "Side_bar_files_open_with",
"Args": {
"Paths": [],
"Application": "C:\\software\\browser\\mozilla Firefox\\firefox.exe",
"Extensions": ". *"//matches any file type
}},
Chrome
{"Keys": ["F2"], "command": "Side_bar_files_open_with",
"Args": {
"Paths": [],
"Application": "C:\\users\\mr.dengo\\appdata\\local\\google\\chrome\\application\\chrome.exe",
"Extensions": ". *"},
Ie
{"Keys": ["F3"], "command": "Side_bar_files_open_with",
"Args": {
"Paths": [],
"Application": "C:\\Program files\\internet Explorer\\iexplore.exe",
"Extensions": ". *"},
Safari
{"Keys": ["F4"], "command": "Side_bar_files_open_with",
"Args": {
"Paths": [],
"Application": "C:\\software\\browser\\safari\\safari.exe",
"Extensions": ". *"},
Opera
{"Keys": ["F5"], "command": "Side_bar_files_open_with",
"Args": {
"Paths": [],
"Application": "C:\\software\\browser\\opera\\opera.exe",
"Extensions": ". *"}}]


Sublime Text 3 Install the package Control

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.