码迷,mamicode.com
首页 > 其他好文 > 详细

配置Sublime text 3(ubuntu)

时间:2014-08-01 20:08:13      阅读:227      评论:0      收藏:0      [点我收藏+]

标签:配置文件   ubuntu   sublime text 3   

点击Preferences->Settings User,修改配置文件如下:

{
	"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme",
  	"fallback_encoding": "UTF-8",
	"font_size": 14,
	"tab_size": 2,
	"translate_tabs_to_spaces": true,
	"word_wrap": true,
  	"trim_trailing_white_space_on_save": true,
  	"rulers": [81],
	"ensure_newline_at_eof_on_save": true,
	"shift_tab_unindent": true,
  	"wrap_width": 80
}

安装Package Control:

按下ctrl + `后,在弹出的命令窗口中输入下面命令即可:
import urllib.request,os,hashlib; h = ‘7183a2d3e96f11eeadd761d777e62404‘ + ‘e330c659d4bb41d3bdf022e94cab3cd0‘; pf = ‘Package Control.sublime-package‘; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( ‘http://sublime.wbond.net/‘ + pf.replace(‘ ‘, ‘%20‘)).read(); dh = hashlib.sha256(by).hexdigest(); print(‘Error validating download (got %s instead of %s), please try manual install‘ % (dh, h)) if dh != h else open(os.path.join( ipp, pf), ‘wb‘ ).write(by)

安装成功后,点击菜单Preferences->Package Settings->Package Control->Settings-User,修改配置文件如下,保存以后,选择Package Control->Install Package,将会自动下载。

{
	"installed_packages":
	[
		"Alignment",
		"BracketHighlighter",
		"ColorPicker",
		"CompactExpandCss",
		"CSScomb JS",
		"Emmet Css Snippets",
		"Hex-to-RGBA",
		"HTML5",
		"JsFormat",
		"Package Control",
		"Rails Developer Snippets",
		"Ruby on Rails snippets",
		"RubyTest",
		"SublimeTmpl",
		"Tag",
		"Terminal",
		"Tradsim"
	]
}



本文出自 “小学生学电脑” 博客,请务必保留此出处http://cpple.blog.51cto.com/6719977/1533920

配置Sublime text 3(ubuntu),布布扣,bubuko.com

配置Sublime text 3(ubuntu)

标签:配置文件   ubuntu   sublime text 3   

原文地址:http://cpple.blog.51cto.com/6719977/1533920

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!