zoukankan      html  css  js  c++  java
  • sublime设置备份

    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,如果不能正常使用,修改默认快捷键即可

  • 相关阅读:
    H: Dave的组合数组(二分法)
    G: Dave的时空迷阵(next数组)
    计蒜客 X的平方根(二分法)
    最短路径四种方法
    POJ 2001 Shortest Prefixes(字典树活用)
    HDU 1671 Phone List (qsort字符串排序与strncmp的使用 /字典树)
    快速排序原理
    抓捕盗窃犯
    Hash函数
    Monkey King(左偏树 可并堆)
  • 原文地址:https://www.cnblogs.com/txwsqk/p/3448745.html
Copyright © 2011-2022 走看看