Sublime Text 2 How to use

Source: Internet
Author: User



Recently started using the sublime Text 2 software, writing Python programs is really much more convenient. Keep a record of the problems you are having with your use.



1. Change the font size



Find settings–user click under Menu Preferences , performance.sublime-settings This file will open.
You can modify the font_size.



Later found, CTRL + mouse wheel can be easily adjusted size



2. Support User input



You need to install the plugin Sublimerepl.



But the use of the time need to tools--sublimerepl--python--run current file, too troublesome, you can set shortcut keys:



Click Perferences-key bindings-users to add the following code.


{"keys":["f5"], "caption": "SublimeREPL: Python - RUN current file", "command": "run_existing_window_command", "args":
{ "id": "repl_python_run", "file": "config/Python/Main.sublime-menu" }
}


Press F5 to run.



3. Enable sublime text 2 to support Chinese input



Plugin required: ConvertToUTF8 and GBK Encoding support



But I was faking it or not, and I found out to write on the first line of code:


# -*-coding:utf-8-*-





Sublime Text 2 How to use


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.