title: Sublime-优化指南date: 2020-07-01 16:01:33
categories: Config
tags: config

一 插件推荐

  • 插件管理器
    1. 1 Ctl(Command)+Shift+P
    2. 2 安装:Package Control:Install Package
    3. 3 卸载:Package Control:Remove Package
  • 汉化
    1. ChineseLocalizations
  • 格式化
    1. pretty,html/css/js
  • 主题
    1. 主题:ayu
    2. 图标:A File Icon
    3. 使用:settings Preferences > Theme(Color Scheme) 选择即可
  • vue语法
    1. Vue Syntax Highlight
  • 终端
    1. terminal
  • 远程编辑服务器文件
    1. SFTP

二 优化设置

  1. 禁用更新
    Preferences ->Settings(version: 3211)
    1. {
    2. "update_check": false
    3. }
  1. eclipse快捷键
    Preferences -> Key Bindings
    1. [
    2. { "keys": ["shift+enter"], "command": "run_macro_file", "args": {"file": "Packages/Default/Add Line.sublime-macro"} },
    3. { "keys": ["alt+/"], "command": "auto_complete" },//自动提示
    4. { "keys": ["alt+up"], "command": "swap_line_up" },//整行上移
    5. { "keys": ["alt+down"], "command": "swap_line_down" },//整行下移
    6. { "keys": ["alt+left"], "command": "jump_back" },//跳转到上一个编辑处
    7. { "keys": ["alt+right"], "command": "jump_forward" },
    8. { "keys": ["ctrl+alt+j"], "command": "join_lines" },
    9. { "keys": ["ctrl+d"], "command": "run_macro_file", "args": {"file": "Packages/Default/Delete Line.sublime-macro"} },//整行删除
    10. { "keys": ["ctrl+h"], "command": "show_panel", "args": {"panel": //搜索全文
    11. "find_in_files"} },
    12. { "keys": ["ctrl+l"], "command": "show_overlay", "args": {"overlay": "goto", "text": ":"} },
    13. { "keys": ["ctrl+o"], "command": "show_overlay", "args": {"overlay": //跳转到当前的某个方法
    14. "goto", "text": "@"} },
    15. { "keys": ["ctrl+up"], "command": "goto_definition" },//跳转到定义,比如在某个函数上按此键,则跳转到它的定义。
    16. { "keys": ["ctrl+down"], "command": "find_under_prev" },//选中光标所在的变量或者函数,非常有用
    17. { "keys": ["ctrl+alt+down"], "command": "duplicate_line" },//向下复制整行
    18. {"keys": ["ctrl+shift+f"], "command": "reindent" , "args":{"single_line": //格式化代码,当然也可以利用html+css+js prettify插件来格式化
    19. false}},
    20. { "keys": ["ctrl+shift+r"], "command": "show_overlay", "args": {"overlay": "goto", "show_files": true} },
    21. { "keys": ["ctrl+shift+s"], "command": "save_all" },
    22. { "keys": ["ctrl+shift+f4"], "command": "close_all" },
    23. { "keys": ["ctrl+shift+y"], "command": "lower_case" },
    24. { "keys": ["ctrl+shift+x"], "command": "upper_case" }
    25. ]