Sublime Text 2 installation and use

Source: Internet
Author: User



1, first download sublime Text : http://www.sublimetext.com/



2, basic settings. This article: http://blog.jobbole.com/40660/




{
	"auto_complete": false,
	"caret_style": "solid",
	"color_scheme": "Packages/Tomorrow Color Schemes/Tomorrow-Night-Eighties.tmTheme",
	"draw_white_space": "all",
	"ensure_newline_at_eof_on_save": true,
	"file_exclude_patterns":
	[
		".DS_Store",
		"*.pid",
		"*.pyc"
	],
	"find_selected_text": true,
	"fold_buttons": false,
	"folder_exclude_patterns":
	[
		".git",
		"__pycache__",
		"env",
		"env3"
	],
	"font_face": "Ubuntu Mono",
	"font_options":
	[
		"subpixel_antialias",
		"no_bold"
	],
	"font_size": 16.0,
	"highlight_line": true,
	"highlight_modified_tabs": true,
	"ignored_packages":
	[
		"Vintage"
	],
	"line_padding_bottom": 0,
	"line_padding_top": 0,
	"rulers":
	[
		72,
		79
	],
	"scroll_past_end": false,
	"show_minimap": false,
	"tab_size": 4,
	"theme": "Soda Dark.sublime-theme",
	"translate_tabs_to_spaces": true,
	"trim_trailing_white_space_on_save": true,
	"wide_caret": true,
	"word_wrap": true,
	"wrap_width": 80
}
3, plug-in installation;





General Installation Method : open Sublime Text2, Preferences, and Browse Packages. Unzip the file downloaded from GitHub, and rename it to the name of the appropriate plugin to put it in the directory.



4, Python plug-in installation Sublimerepl;



Set to execute the current file directly: http://blog.sina.com.cn/s/blog_6476250d0101a881.html



(1) Open the C:\Users\MyPC\AppData\Roaming\Sublime Text 2\packages\sublimerepl\config\python\main.sublime-menu file to find "id": " Repl_python "In the row, change the value of the Cmd property in this JSON object to [" Python ","-I ","-U "," $file _basename "]



(2) Click Perferences-key bindings-users. Set shortcut keys




[
{ "keys": ["f5"],
    "caption": "SublimeREPL: Python",
    "command": "run_existing_window_command", "args":
        { "id": "repl_python" ,
             "file": "config/Python/Main.sublime-menu"
         }
    }
]
(3) Installation of Pylint and Pylinter plug-in




Pip Install Pylint
5. Other





Some of the better plugins: http://ipestov.com/the-best-plugins-for-sublime-text/
These two articles can also look at:



Http://www.xuanfengge.com/practical-collection-of-sublime-plug-in.html



Http://www.xuanfengge.com/sublime-text-2-artifact.html



Column editing:shift+ The right mouse button to drag the selected. The middle wheel of the mouse is both ways.



Sublime Text 2 installation and 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.