sublime配置

sublime

[TOC]

快捷鍵

編輯

編輯

  • Ctrl + X 刪除行
  • Ctrl + Shift + D 複製當前行
  • Ctrl + Shift + 上下鍵 該行上下移動
  • Ctrl + / 註釋當前行
  • Alt + Shift + 1/2/3/4 分屏顯示
  • Alt + 數字 切換第N個頁籤
  • Ctrl + Alt + F 格式化代碼
  • Ctrl + Alt + 上下鍵 選中多行 在各行的光標處編輯

選擇

  • Ctrl + D 選中光標所佔文本, 繼續操作會選中下一個相同的文本
  • Alt + F3 選中文本進行同時編輯, 比如快速修改變量名
  • Ctrl + Shift +[ 先選中代碼,執行此命令,摺疊代碼
  • Ctrl + Shift +] 先選中代碼,執行此命令,展開代碼
  • Ctrl + K + 0 展開所有摺疊代碼
  • Shift + 上下鍵 選中多行

搜索

  • Ctrl + F 打開底部搜索框,查找關鍵字
  • Ctrl + Shift + F 在文件夾內查找
  • Ctrl + H 替換

  • Ctrl + P 打開頂部搜索框
    • 文件名: 搜文件
    • @ + 關鍵字: 搜索函數名
    • # + 關鍵字: 搜索變量名
    • : + 數字: 跳轉到該行
  • Ctrl + R 打開頂部搜索框,自動帶@。 搜索函數名
  • Ctrl + : 打開頂部搜索框,自動帶#。 搜索變量名,屬性

Settings

{
    "color_scheme": "Packages/Color Scheme - Default/All Hallow's Eve.tmTheme",
    "font_face": "YaHei Consolas hybrid",
    "font_size": 14,
    "highligt_line": true,
    "ignored_packages":
    [
    ],
    "theme": "Spacegray Light.sublime-theme",
    "update_check": false
}

Package Control

{
    "bootstrapped": true,
    "http_proxy": "child-prc.intel.com:913",
    "https_proxy": "child-prc.intel.com:913",
    "in_process_packages":
    [
    ],
    "installed_packages":
    [
        "1337 Color Scheme",
        "CodeFormatter",
        "ConvertToUTF8",
        "GBK Support",
        "Git",
        "Groovy Snippets",
        "IMESupport",
        "jQuery",
        "Markdown Preview",
        "MarkdownEditing",
        "Nodejs",
        "Notes",
        "Package Control",
        "PlainNotes",
        "SublimeREPL",
        "Table Editor",
        "View In Browser"
    ]
}

Markdown Preview

settings

{
//  "enabled_parsers": ["markdown", "wikilinks"] 

    "parser": "markdown",
    "build_action": "browser",
    "enable_mathjax": true,
    "enable_uml": true,
    "enable_highlight": true,
    "enable_pygments": true,
    "css": ["C:\\Users\\bzhux\\Program\\SublimeTextBuild3126x64\\Data\\myconf\\github.css"],
    // "enabled_parsers": ["markdown", "github"],
    "enabled_parsers": ["markdown"],
    "github_mode": "markdown",
    "github_inject_header_ids": true,
    "enable_autoreload": false
}

MarkdownEditing

settings for gfm

{
    "enable_table_editor": true,
    "extensions":
    [
        "md"
    ],
    "highlight_line": true,
    "line_numbers": true
}

PlainNotes

settings

{
    "root": "~/WS/Notes/",
    "note_color_scheme": "Packages/PlainNotes/Color Schemes/Sticky-Gray.tmTheme",
    "jotter_color_scheme": "Packages/PlainNotes/Color Schemes/Sticky-Gray.tmTheme",
    "list_options" : {
    "display_modified_date": true,
    "display_folder": true,
    "display_full_path": true
  }
}

Nodejs

settings

{
  // save before running commands
  "save_first": true,
  // if present, use this command instead of plain "node"
  // e.g. "/usr/bin/node" or "C:\bin\node.exe"
  "node_command": "C:\\Program Files\\nodejs\\node.exe",
  // Same for NPM command
  "npm_command": "C:\\Program Files\\nodejs\\npm.cmd",
  // as 'NODE_PATH' environment variable for node runtime
  "node_path": false,

  "expert_mode": false,

  "ouput_to_new_tab": false
}

Key

[{
    "keys": ["alt+right"],
    "command": "next_view"
}, {
    "keys": ["alt+left"],
    "command": "prev_view"
}, {
    "keys": ["alt+m"],
    "command": "markdown_preview",
    "args": {
        "target": "browser"
    }
}, {
    "keys": ["ctrl+alt+f"],
    "command": "reindent",
    "args": {
        "single_line": false
    }
}, {
    "keys": ["ctrl+alt+enter"],
    "command": "open_in_browser"
}, {
    "keys": ["f5"],
    "caption": "SublimeREPL: Python - RUN current file",
    "command": "run_existing_window_command",
    "args": {
        "id": "repl_python_run",
        "file": "config/Python/Main.sublime-menu"
    }
}]

Ctrl + B

Tools --> Build System --> New Build System
new Groovy.sublime-build

Groovy

{
    "cmd": ["groovy","$file"],
    "selector": "source.groovy",
    "file_regex": "[ ]*at .+[(](.+):([0-9]+)[)]",

    "windows": {
        "shell": "cmd.exe"
    }
}
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章