Sublime Text 3 - abigure/personal-settings GitHub Wiki
Packages
Install Package Manager
View > Show Console
把 Sublime Console 叫出來- 把 https://sublime.wbond.net/installation 給的適合的版本的安裝指令貼進去執行
Theme & Color Scheme
- Seti_UI (Theme, 目前最推薦)
- Railscasts Extended (Color Scheme, 目前推薦, 黑底暖色為主)
- Tomorrow Night Bright 改 (Color Scheme, 需手動安裝, 黑底冷色為主)
推薦的 Packages
有些不見得大家都要裝
我基本上都會裝的
- Alignment (cmd+shift+a 多行對齊)
- Emmet (Zen Code)
- Git (用 Command Palette 下 git 指令)
- GitGutter (行號旁邊顯示 +-)
- Githubinator (用 Command Palette 開啓在 Github 上的檔案/blame)
- Rails Latest Migration
- Related Files
- RSpec
- Seti_UI
- CTags
- ERB_Snippets (if, ife, else, end, lt 等 snippets)
- SideBarEnhancements
- Color Highlighter
未整理
- All Autocomplete
- ApplySyntax (偵測正確的語法,例如 rb => ruby, ror, rspec...)
- BeautifyRuby
- BracketHighlighter
- ColorPicker
- Haml
- knockdown (Github Flavored Markdown 語法標色)
- Markdown Preview
- Markdown Preview (有 GFM)
- Package Control
- PackageResourceViewer
- PlainTasks
- Rail latest migration (用 Command Palette 開啓最後一個migration file)
- Rails Developer Snippets
- Rails Migrations List
- Ruby Debugger
- Sass
- SCSS
- SCSS Snippets
- SmartMarkdown (但會導致中文輸入問題)
- SublimeCodeIntel
- SublimeLinter
- SublimeREPL
- Tomorrow Color Schemes
- TrailingSpaces
Package Settings
BracketHighlighter
打開 Preferences > Packages Settings > Bracket Highlighter > Bracket Settings - User
{
"brackets": [
// Ruby conditional statements
{
"name": "ruby",
"open": "((?:(?<=^)|(?<==))\\s*\\b(?:if|begin|case)\\b|^\\s*\\b(?:case|for|until|unless|while|class|module|def\\b[\\p{Ll}\\p{Lu}]*)|\\bdo)\\b",
"close": "\\b(end)\\b",
"style": "default",
"scope_exclude": ["string", "comment"],
"plugin_library": "bh_modules.rubykeywords",
"language_filter": "whitelist",
"language_list": ["Ruby", "RSpec", "Ruby on Rails"],
"enabled": true
}
],
"bracket_styles": {
"default": {
"icon": "",
"color": "brackethighlighter.default",
"style": "outline"
},
"unmatched": {
"icon": "question",
"style": "outline"
},
"curly": {
"icon": ""
},
"round": {
"icon": ""
},
"square": {
"icon": ""
},
"angle": {
"icon": ""
},
"tag": {
"icon": "",
"style": "outline"
},
"single_quote": {
"icon": ""
},
"double_quote": {
"icon": ""
},
"regex": {
"icon": ""
}
}
}
CTags
http://ascendbruce.logdown.com/posts/179064-sublime-text-integration-with-ctags
end
tag 衝突問題
ERB 參考 ERB-Sublime-Snippets 的 Resolve conflicting tab trigger 一節
GitGutter
打開 Preferences > Packages Settings > Bracket Highlighter > GitGutter Settings - User
{
"non_blocking": true,
"show_markers_on_untracked_file": true
}
Preferences > Key Bindings - User
[
{"keys": ["super+shift+r"], "command": "reveal_in_side_bar"},
{"keys": ["super+k", "super+m"], "command": "chain", "args": { "commands": [ ["toggle_side_bar"], ["toggle_minimap"] ] } },
{"keys": ["option+p"], "command": "side_bar_copy_path_absolute_from_project"},
{"keys": ["ctrl+shift+r"], "command": "reindent" , "args": {"single_line": false}}
]
Preferences > Settings - User
{
"Seti_no_bar_undertabs": true,
"Seti_tabs_small": true,
"color_scheme": "Packages/Railscasts Extended/Railscasts Extended.tmTheme",
"detect_slow_plugins": false,
"ensure_newline_at_eof_on_save": true,
"file_exclude_patterns":
[
".DS_Store",
".tags",
".tags_sorted_by_file",
".gemtags"
],
"find_selected_text": true,
// Option 1:
// "font_face": "Source Code Pro",
// "font_size": 13.0,
// Option 2:
"font_face": "Anonymous Pro",
"line_padding_bottom": 1,
"line_padding_top": 1,
"font_size": 14.0,
"highlight_line": true,
"fade_fold_buttons": false,
"bold_folder_labels": true,
"ignored_packages":
[
"Vintage"
],
"indent_guide_options":
[
"draw_normal",
"draw_active"
],
"match_brackets": false,
"rulers":
[
80,
120
],
"scroll_past_end": true,
"show_full_path": true,
"tab_size": 2,
"theme": "Seti.sublime-theme",
"translate_tabs_to_spaces": true,
"trim_trailing_white_space_on_save": true,
"wide_caret": true
}
Package Control.sublime-settings
{
"in_process_packages":
[
],
"installed_packages":
[
"Alignment",
"ApplySyntax",
"Better CoffeeScript",
"BracketHighlighter",
"Chain of Command",
"Color Highlighter",
"CTags",
"DashDoc",
"Emmet",
"ERB-Sublime-Snippets",
"Git",
"GitGutter",
"GitHubinator",
"Markdown Preview",
"Package Control",
"PackageResourceViewer",
"Rails Developer Snippets",
"Rails Latest Migration",
"Railscasts Extended",
"Related Files",
"RSpec",
"SCSS",
"Seti_UI",
"SideBarEnhancements",
"SmartMarkdown",
"TrailingSpaces"
],
"repositories":
[
"https://github.com/ascendbruce/ERB-Sublime-Snippets",
"https://github.com/facelessuser/ApplySyntax"
]
}