sublime text 2安装及使用

1、首先下载Sublime Texthttp://www.sublimetext.com/

2、基本设置,参考此文: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、插件安装;

通用安装方法打开sublime text2 -> Preferences -> Browse Packages,将从github上下载文件解压缩,并重命名为对应插件的名字放入文件夹即可。

4、python插件安装SublimeREPL;

设置能直接运行当前文件:http://blog.sina.com.cn/s/blog_6476250d0101a881.html

(1)打开C:\Users\MyPC\AppData\Roaming\Sublime Text 2\Packages\SublimeREPL\config\Python\Main.sublime-menu文件找到"id": "repl_python"所在行,将这个JSON对象中args属性下cmd属性值改为["python", "-i", "-u", "$file_basename"]

(2)点击Perferences-Key Bindings-Users,设置快捷键

[
{ "keys": ["f5"],
    "caption": "SublimeREPL: Python",
    "command": "run_existing_window_command", "args":
        { "id": "repl_python" ,
             "file": "config/Python/Main.sublime-menu"
         }
    }
]
(3)安装pylint 和 Pylinter插件

pip install pylint
5、其它

一些比较好的插件:http://ipestov.com/the-best-plugins-for-sublime-text/
      这两篇文章也可以看看:

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

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

列编辑:Shift+鼠标右键拖动选中;鼠标中间滚轮这两种方式。

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值