Sublime Text的配置

Sublime Text:一款具有代码高亮、语法提示、自动完成且反应快速的编辑器软件,不仅具有华丽的界面,还支持插件扩展机制,用她来写代码,绝对是一种享受。

一、安装package control

按Ctrl+`调出console

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

二、修改个人配置

字体大小

      
      
1
2
      
      
"font_size": 17

高亮编辑中的那一行

      
      
1
2
      
      
"highlight_line": true

焦点丢失后自动保存

      
      
1
2
      
      
"save_on_focus_lost": true

显示当前文件的编码

      
      
1
2
      
      
"show_encoding": true

保存的时候把无用的空格去掉

      
      
1
2
      
      
"trim_trailing_white_space_on_save": true

Tab转换

      
      
1
2
3
      
      
"tab_size": 2 ,
"translate_tabs_to_spaces": true

自动换行

      
      
1
2
      
      
"word_wrap": false

宽度指导线

      
      
1
2
      
      
"rulers": [80]

拼写检查

      
      
1
2
      
      
"spell_check": false

要不要滚过头

      
      
1
2
      
      
"scroll_past_end": true

加粗文件夹名称

      
      
1
2
      
      
"bold_folder_labels": true

显示全路径

      
      
1
2
      
      
"show_full_path": true

user下的设置

      
      
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
      
      
{
"font_size": 17,
"highlight_line": true,
"show_full_path": true,
"ignored_packages":
[
"Vintage"
],
"rulers":
[
80
],
"bold_folder_labels": true,
"save_on_focus_lost": true,
"scroll_past_end": true,
"show_encoding": true,
"show_line_endings": true,
"tab_size": 2,
"translate_tabs_to_spaces": true,
"trim_trailing_white_space_on_save": true
}

三、各种插件推荐

1、Emmet

2、Color Highlighter&&Color Picker

3、Prettify

4、ConvertToUTF8

5、SublimeTmpl

6、sublimeLinter

7、Sublime CodeIntel

8、git

9、GitGutter

10、Terminal

原文:大专栏  Sublime Text的配置


猜你喜欢

转载自www.cnblogs.com/peterchan1/p/11641297.html