sublimeバックアップの設定

6539 ワード

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"
    ]
}

パッケージコントロールのインストール
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#この2つはlinuxの下に中国語を表示します
sublimecodeintel#コードプロンプト
alignment#コード整列デフォルトショートカットキーはctrl+alt+aです.正常に使用できない場合は、デフォルトショートカットキーを変更すればいいです.