Sublime Text 3 Configuration

Source: Internet
Author: User
Configuration:
{    "font_face": "Source Code Pro",    "font_size": 13,    "highlight_line": true,    "ignored_packages":    [        "Vintage"    ],    "show_encoding": true,    "translate_tabs_to_spaces": true}

 

Plugin: 1. Package control:

Press Ctrl + 'or View> show console to open the console and paste the corresponding Python installation code;

Code:

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

If you see package control in perferences-> package settings, the installation is successful.

How to Use package control to install the plug-in: press Ctrl + Shift + P to bring up the command panel, enter install to bring up the install package option, and press Enter. Then, select the plug-in to be installed in the list.

2. Python pep8 AutoFormat:

  It is used to automatically format the code according to pep8. You can install it in the package manager. Press Ctrl + Shift + R to automatically format the Python code.

3. bracket highlighter:

Used to match parentheses, quotation marks, and HTML tags. It is useful for long codes. After installation, the plug-in does not need to be set to take effect automatically.

4. Sidebar enhancements:

The Sidebar is improved and many features are added.

5. Alignment:

Align your code, including PHP, CSS, and JavaScript. The code looks more concise and readable for easy editing.

6. trimmer:

During code writing, unnecessary spaces are generated due to errors or other reasons. Note that redundant spaces sometimes cause errors. This plug-in will automatically delete these unnecessary spaces.

7. jslint:

Jslint is a javascript code quality check tool. It tells you where the code needs improvement. Although you can also detect it on the Internet, this plug-in allows you to directly detect it in sublime without opening a browser.

8. sublime codeintel:

It provides many functions provided by IDE, such as code auto-completion, quick jump to variable definition, and display function shortcut information in the status bar. The Supported languages include PHP, Python, rhtml, JavaScript, smarty, Mason, and node. JS, XBL, TCL, HTML, HTML5, templatw.lkit, XUL, Django, Perl, Ruby, python3.

9. Terminal:

Use the terminal in sublime to open your project folder and use shortcut keys.

10. Clipboard history:

Clipboard history to facilitate the use of copied/cut content.

11. trailingspacer:

Highlight unnecessary spaces and tabs.

12. sublimetmpl

  Quickly generate a file template. sublimetmpl can create HTML, CSS, JavaScript, PHP, Python, and Ruby file templates. All file templates are in the Templates folder of the plug-in directory, you can customize and edit file templates. If you want to create a new file template of another type, first customize the file template in the Templates folder, and then open default (Windows) respectively ). sublime-keymap, default. sublime-commands, Main. sublime-menu, sublimetmpl. the sublime-settings files customize the type to be created according to the format in the file.

13. sublimelinter

  Code error prompt: sublimelinter can check the error code in HTML, CSS, JavaScript, PHP, and other languages and give a prompt on the premise that the environment of the corresponding language needs to be configured, to check JS Code, you need to install node. JS, check PHP code to install PHP and configure the environment. With this plug-in, we can promptly correct code errors and cultivate our good coding habits and styles.

14. jsformat:

Format the JS file. Right-click the JS file and choose jsformat or (CTRL + ALT + F) to automatically format the file content.

 

Sublime Text 3 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.