〔备忘〕Sublime3 配置

安装的插件列表

  • Package Control

    Sublime Text 3 | Ctrl+~

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

Package Control Installation 页面找最新的安装代码

  • Predawn〔皮肤〕

  • HTML-CSS-JS Prettify〔用于格式化HTML和JavaScript〕

  • Pretty JSON〔用于格式化JSON〕

  • Babel

  • ConvertToUTF8〔支持GB2312〕

  • Markdown Preview

  • LESS

  • Less2Css

  • TortoiseSVN

  • Emment

  • SublimeAStyleFormatter

Settings

{
    "color_scheme": "Packages/Predawn/predawn.tmTheme",
    "findreplace_small": true,
    "font_face": "Source Code Pro",
    "font_size": 10,
    "ignored_packages":
    [
        "Vintage"
    ],
    "rulers":
    [
        80,
        100,
        120
    ],
    "shift_tab_unindent": true,
    "show_encoding": true,
    "show_line_endings": true,
    "tab_size": 4,
    "tabs_medium": true,
    "theme": "predawn.sublime-theme",
    "translate_tabs_to_spaces": true,
    "typescript_plugin_tsc_version": "1.5.3",
    "word_wrap": true
}

Key Bindings

[
    {
        "keys": [
            "ctrl+t"
        ],
        "command": "new_file"
    },
    {
        "keys": [
            "ctrl+alt+f"
        ],
        "command": "reindent",
        "args": {
            "single_line": false
        }
    },
    {
        "keys": [
            "ctrl+alt+f"
        ],
        "command": "htmlprettify",
        "context": [
            {
                "key": "selector",
                "operator": "equal",
                "operand": "source.js,text.html"
            }
        ]
    },
    {
        "keys": [
            "ctrl+alt+f"
        ],
        "command": "pretty_json",
        "context": [
            {
                "key": "selector",
                "operator": "equal",
                "operand": "source.json"
            }
        ]
    },
    {
        "keys": [
            "ctrl+alt+f"
        ],
        "command": "astyleformat",
        "context": [
            {
                "key": "astyleformat_is_enabled",
                "operator": "equal",
                "operand": ""
            }
        ]
    },
    {
        "keys": [
            "ctrl+y"
        ],
        "command": "redo"
    },
    {
        "keys": [
            "ctrl+shift+u"
        ],
        "command": "upper_case"
    },
    {
        "keys": [
            "ctrl+u"
        ],
        "command": "lower_case"
    },
    {
        "keys": [
            "ctrl+,"
        ],
        "command": "show_overlay",
        "args": {
            "overlay": "goto",
            "show_files": true
        }
    },
    {
        "keys": [
            "ctrl+]"
        ],
        "command": "move_to",
        "args": {
            "to": "brackets"
        }
    },
    {
        "keys": [
            "alt+-"
        ],
        "command": "jump_back"
    },
    {
        "keys": [
            "alt+="
        ],
        "command": "jump_forward"
    },
    {
        "keys": [
            "ctrl+alt+\\"
        ],
        "command": "shell_command"
    },
    {
        "keys": [
            "ctrl+enter"
        ],
        "command": "auto_complete"
    },
    {
        "keys": [
            "ctrl+up"
        ],
        "command": "swap_line_up"
    },
    {
        "keys": [
            "ctrl+down"
        ],
        "command": "swap_line_down"
    },
    {
        "keys": [
            "ctrl+shift+up"
        ],
        "command": "scroll_lines",
        "args": {
            "amount": 1.0
        }
    },
    {
        "keys": [
            "ctrl+shift+down"
        ],
        "command": "scroll_lines",
        "args": {
            "amount": -1.0
        }
    },
    {
        "keys": [
            "ctrl+enter"
        ],
        "command": "replace_completion_with_auto_complete",
        "context": [
            {
                "key": "last_command",
                "operator": "equal",
                "operand": "insert_best_completion"
            },
            {
                "key": "auto_complete_visible",
                "operator": "equal",
                "operand": false
            },
            {
                "key": "setting.tab_completion",
                "operator": "equal",
                "operand": true
            }
        ]
    },
    {
        "keys": [
            "ctrl+left"
        ],
        "command": "move",
        "args": {
            "by": "subwords",
            "forward": false
        }
    },
    {
        "keys": [
            "ctrl+right"
        ],
        "command": "move",
        "args": {
            "by": "subword_ends",
            "forward": true
        }
    },
    {
        "keys": [
            "ctrl+shift+left"
        ],
        "command": "move",
        "args": {
            "by": "subwords",
            "forward": false,
            "extend": true
        }
    },
    {
        "keys": [
            "ctrl+shift+right"
        ],
        "command": "move",
        "args": {
            "by": "subword_ends",
            "forward": true,
            "extend": true
        }
    },
    {
        "keys": [
            "alt+`"
        ],
        "command": "show_overlay",
        "args": {
            "overlay": "command_palette"
        }
    }
]
    原文作者:边城
    原文地址: https://segmentfault.com/a/1190000000746054
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞