Skip to content

Instantly share code, notes, and snippets.

@Rplus
Last active December 16, 2015 04:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Rplus/5379670 to your computer and use it in GitHub Desktop.
Save Rplus/5379670 to your computer and use it in GitHub Desktop.
My Sublime Text 2 user settings ~
[
{ "caption": "-", "id": "end" },
{ "command": "reindent", "args": {"single_line": true} }
]
{
// 切換上下分頁群組
{
"keys": ["alt+home"],
"command": "set_layout",
"args":
{
"cols": [0.0, 1.0],
"rows": [0.0, 0.05, 1.0],
"cells": [[0, 0, 1, 1], [0, 1, 1, 2]]
}
},
{
"keys": ["alt+end"],
"command": "set_layout",
"args":
{
"cols": [0.0, 1.0],
"rows": [0.0, 0.95, 1.0],
"cells": [[0, 0, 1, 1], [0, 1, 1, 2]]
}
},
// 清字尾空白,需安裝 [TrailingSpaces](https://github.com/SublimeText/TrailingSpaces)
{ "keys": ["ctrl+shift+alt+t"], "command": "delete_trailing_spaces" },
// 開關側欄 (螢幕小,常開開關關)
{ "keys": ["alt+a"], "command": "toggle_side_bar" },
// 貼上自動縮排,及純貼上 (與預設相反的熱鍵綁定)
{ "keys": ["ctrl+v"], "command": "paste_and_indent" },
{ "keys": ["ctrl+shift+v"], "command": "paste" },
// focus 到側欄的檔案位置
{ "keys": ["ctrl+shift+r"], "command": "reveal_in_side_bar" },
// 復原被 Emmet 綁定的快速鍵
{ "keys": ["ctrl+up"], "command": "scroll_lines", "args": {"amount": 1.0 } },
{ "keys": ["ctrl+down"], "command": "scroll_lines", "args": {"amount": -1.0 } }
}
{
"always_show_minimap_viewport": true,
"bold_folder_labels": true, // 資料夾粗體顯示
"draw_white_space": "selection", // 選取時顯示空白
"ensure_newline_at_eof_on_save": true,
"font_face": "Monaco",
"font_size": 14,
"highlight_modified_tabs": true, // 異動檔,分頁變色標示
"show_tab_close_buttons": false, // 不顯示分頁上的關閉鈕
"translate_tabs_to_spaces": true,
"wide_caret": true, // 輸入線變寬
"word_wrap": true,
"rulers": [120], // 寬 120 的輔助線
"folder_exclude_patterns":
[
".svn", ".git", ".hg", "CVS", // 預設的
".sass-cache",
"node_modules"
],
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment