sublime設定備份

曲珂發表於2013-11-28

Settings-user

{
    "font_face": "Consolas",
    "font_size": 13,
    "line_padding_bottom": 0,
    "line_padding_top": 0,
    "highlight_line": true,
    "fade_fold_buttons": false,
    "rulers": [79],
    "show_minimap": false,
    "draw_white_space": "selection",
    "highlight_modified_tabs": true,
    "find_selected_text": true,
    "tab_size": 4,
    "translate_tabs_to_spaces": true,
    "trim_trailing_white_space_on_save": true,
    "ensure_newline_at_eof_on_save": true,
    "word_wrap": true,
    "line_padding_top": 1,
    "line_padding_bottom": 1,
    "default_line_ending": "unix",
    "ignored_packages":
    [
        "Vintage",
        "SublimeCodeIntel"
    ]
}

 安裝package control

For sublime text 3

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

 

For sublime text 2

import urllib2,os; pf='Package Control.sublime-package'; ipp = sublime.installed_packages_path(); os.makedirs( ipp ) if not os.path.exists(ipp) else None; urllib2.install_opener( urllib2.build_opener( urllib2.ProxyHandler( ))); open( os.path.join( ipp, pf), 'wb' ).write( urllib2.urlopen( 'http://sublime.wbond.net/' +pf.replace( ' ','%20' )).read()); print( 'Please restart Sublime Text to finish installation')  

sublime_text.desktop

[Desktop Entry]
Version=1.0
Type=Application
Name=Sublime Text
GenericName=Text Editor
Comment=Sophisticated text editor for code, markup and prose
Exec=/opt/sublime_text/sublime_text %F
Terminal=false
MimeType=text/plain;
Icon=/opt/sublime_text/Icon/32x32/sublime_text.png
Categories=TextEditor;Development;
StartupNotify=true
Actions=Window;Document;

[Desktop Action Window]
Name=New Window
Exec=/opt/sublime_text/sublime_text -n
OnlyShowIn=Unity;

[Desktop Action Document]
Name=New File
Exec=/opt/sublime_text/sublime_text --command new_file
OnlyShowIn=Unity;

安裝外掛  

converttoutf8

codecs  #這兩個是linux下顯示中文

sublimecodeintel  #程式碼提示

alignment  #程式碼對齊 預設快捷鍵是 ctrl+alt+a,如果不能正常使用,修改預設快捷鍵即可

相關文章