Sublime Settings
Sublime Settings
"auto_complete": true,
"auto_complete_commit_on_tab": true,
"auto_complete_with_fields": true,
"bold_folder_labels": true,
"default_encoding": "UTF-8",
"detect_indentation": true,
"draw_white_space": "all",
"font_face": "Ubuntu Mono",
"font_options": "subpixel_antialias",
"font_size": 13,
"highlight_line": true,
"highlight_modified_tabs": true,
"ignored_packages":
"line_padding_bottom": 1,
"line_padding_top": 1,
"save_on_focus_lost": true,
"scroll_past_end": true,
"tab_size": 2,
"translate_tabs_to_spaces": true,
"word_wrap": true
{
}
// Note that the font_face and font_size are overridden in the platform
// specific settings file, for example, "Preferences (Linux).sublime-settings".
// Because of this, setting them here will have no effect: you must set them
// in your User File Preferences.
"font_face": "",
"font_size": 10,
// Hides the fold buttons unless the mouse is over the gutter
"fade_fold_buttons": true,
// Makes auto indent a little smarter, e.g., by indenting the next line
// after an if statement in C. Requires auto_indent to be enabled.
"smart_indent": true,
// Trims white space added by auto_indent when moving the caret off the
// line.
"trim_automatic_white_space": true,
// Set to a value other than 0 to force wrapping at that column rather than the
// window width
"wrap_width": 0,
// Set to false to prevent word wrapped lines from being indented to the same
// level
"indent_subsequent_lines": true,
// Set to true to draw a border around the visible rectangle on the minimap.
// The color of the border will be determined by the "minimapBorder" key in
// the color scheme
"draw_minimap_border": false,
// Set to false if you'd rather only highlight the brackets when the caret is
// next to one
"match_brackets_content": true,
// Set to false to not highlight square brackets. This only takes effect if
// match_brackets is true
"match_brackets_square": true,
// Set to false to not highlight curly brackets. This only takes effect if
// match_brackets is true
"match_brackets_braces": true,
// Set to false to not highlight angle brackets. This only takes effect if
// match_brackets is true
"match_brackets_angle": false,
// This controls what happens when pressing up or down when on the first
// or last line.
// On OS X, this value is overridden in the platform specific settings, so
// you'll need to place this line in your user settings to override it.
"move_to_limit_on_up_down": false,
// Set to "none" to turn off drawing white space, "selection" to draw only the
// white space within the selection, and "all" to draw all white space
"draw_white_space": "selection",
// Controls how the indent guides are drawn, valid options are
// "draw_normal" and "draw_active". draw_active will draw the indent
// guides containing the caret in a different color.
"indent_guide_options": ["draw_normal"],
// Set to true to ensure the last line of the file ends in a newline
// character when saving
"ensure_newline_at_eof_on_save": false,
// Save via writing to an alternate file, and then renaming it over the
// original file.
"atomic_save": false,
// Encoding used when saving new files, and files opened with an undefined
// encoding (e.g., plain ascii files). If a file is opened with a specific
// encoding (either detected or given explicitly), this setting will be
// ignored, and the file will be saved with the encoding it was opened
// with.
"default_encoding": "UTF-8",
// Determines what character(s) are used to terminate each line in new files.
// Valid values are 'system' (whatever the OS uses), 'windows' (CRLF) and
// 'unix' (LF only).
"default_line_ending": "system",
// When enabled, hovering over a word will show a popup listing all
// possible locations for the definition symbol. Requires index_files.
"show_definitions": true,
// When enabled, pressing tab will insert the best matching completion.
// When disabled, tab will only trigger snippets or insert a tab.
// Shift+tab can be used to insert an explicit tab when tab_completion is
// enabled.
"tab_completion": true,
// The maximum file size where auto complete will be automatically triggered.
"auto_complete_size_limit": 4194304,
// The delay, in ms, before the auto complete window is shown after typing
"auto_complete_delay": 50,
// Controls what happens when pressing the up key while the first item in
// the auto complete window is selected: if false, the window is hidden,
// otherwise the last item in the window is selected. Likewise for the
// down key when the last item is selected.
"auto_complete_cycle": false,
// If true, the copy and cut commands will operate on the current line
// when the selection is empty, rather than doing nothing.
"copy_with_empty_selection": true,
// If true, the selected text will be copied into the find panel when it's
// shown.
// On OS X, this value is overridden in the platform specific settings, so
// you'll need to place this line in your user settings to override it.
"find_selected_text": true,
//
// User Interface Settings
//
// The theme controls the look of Sublime Text's UI (buttons, tabs, scroll
bars, etc)
"theme": "Default.sublime-theme",
"show_tab_close_buttons": true,
// Draw divider lines between sections of the UI when using the Adaptive theme
"adaptive_dividers": true,
// OS X only. Valid values are true, false, and "auto". Auto will enable
// the setting when running on a screen 2560 pixels or wider (i.e., a
// Retina display). When this setting is enabled, OpenGL is used to
// accelerate drawing. Sublime Text must be restarted for changes to take
// effect.
"gpu_window_buffer": "auto",
//
// Application Behavior Settings
//
// Always prompt before reloading a file, even if the file hasn't been
// modified. The default behavior is to automatically reload a file if it
// hasn't been edited. If a file has unsaved changes, a prompt will always
// be shown.
"always_prompt_for_file_reload": false,
// OS X only: When files are opened from finder, or by dragging onto the
// dock icon, this controls if a new window is created or not.
"open_files_in_new_window": true,
// Set to true to close windows as soon as the last file is closed, unless
// there's a folder open within the window.
// On OS X, this value is overridden in the platform specific settings, so
// you'll need to place this line in your user settings to override it.
"close_windows_when_empty": false,
// Shows the Build Results panel when building. If set to false, the Build
// Results can be shown via the Tools/Build Results menu.
"show_panel_on_build": true,
// Shows build errors just under the line on which they occur.
"show_errors_inline": true,
// Preview file contents when clicking on a file in the side bar. Double
// clicking or editing the preview will open the file and assign it a tab.
"preview_on_click": true,
// File indexing parses all files in the side bar, and builds an index of
// their symbols. This is required for Goto Definition to work.
"index_files": true,
// Set the number threads to use for indexing. A value of 0 will make
// Sublime Text guess based on the number of cores. Use the index_files
// setting to disable all workers.
"index_workers": 0,
// List any packages to ignore here. When removing entries from this list,
// a restart may be required if the package contains plugins.
"ignored_packages": ["Vintage"]
}
[
{ "keys": ["ctrl+shift+n"], "command": "new_window" },
{ "keys": ["ctrl+shift+w"], "command": "close_window" },
{ "keys": ["ctrl+o"], "command": "prompt_open_file" },
{ "keys": ["ctrl+shift+t"], "command": "reopen_last_file" },
{ "keys": ["alt+o"], "command": "switch_file", "args": {"extensions": ["cpp",
"cxx", "cc", "c", "hpp", "hxx", "hh", "h", "ipp", "inl", "m", "mm"]} },
{ "keys": ["ctrl+n"], "command": "new_file" },
{ "keys": ["ctrl+s"], "command": "save" },
{ "keys": ["ctrl+shift+s"], "command": "prompt_save_as" },
{ "keys": ["ctrl+f4"], "command": "close_file" },
{ "keys": ["ctrl+w"], "command": "close" },
// Auto-pair quotes
{ "keys": ["\""], "command": "insert_snippet", "args": {"contents":
"\"$0\""}, "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal",
"operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": true,
"match_all": true },
{ "key": "following_text", "operator": "regex_contains",
"operand": "^(?:\t| |\\)|]|\\}|>|$)", "match_all": true },
{ "key": "preceding_text", "operator": "not_regex_contains",
"operand": "[\"a-zA-Z0-9_]$", "match_all": true },
{ "key": "eol_selector", "operator": "not_equal", "operand":
"string.quoted.double - punctuation.definition.string.end", "match_all": true }
]
},
{ "keys": ["\""], "command": "insert_snippet", "args": {"contents":
"\"${0:$SELECTION}\""}, "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal",
"operand": true },
{ "key": "selection_empty", "operator": "equal", "operand":
false, "match_all": true }
]
},
{ "keys": ["\""], "command": "move", "args": {"by": "characters", "forward":
true}, "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal",
"operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": true,
"match_all": true },
{ "key": "following_text", "operator": "regex_contains",
"operand": "^\"", "match_all": true },
{ "key": "selector", "operator": "not_equal", "operand":
"punctuation.definition.string.begin", "match_all": true },
{ "key": "eol_selector", "operator": "not_equal", "operand":
"string.quoted.double - punctuation.definition.string.end", "match_all": true },
]
},
{ "keys": ["backspace"], "command": "run_macro_file", "args": {"file":
"res://Packages/Default/Delete Left Right.sublime-macro"}, "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal",
"operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": true,
"match_all": true },
{ "key": "preceding_text", "operator": "regex_contains",
"operand": "\"$", "match_all": true },
{ "key": "following_text", "operator": "regex_contains",
"operand": "^\"", "match_all": true },
{ "key": "selector", "operator": "not_equal", "operand":
"punctuation.definition.string.begin", "match_all": true },
{ "key": "eol_selector", "operator": "not_equal", "operand":
"string.quoted.double - punctuation.definition.string.end", "match_all": true },
]
},
// Auto-pair brackets
{ "keys": ["("], "command": "insert_snippet", "args": {"contents": "($0)"},
"context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal",
"operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": true,
"match_all": true },
{ "key": "following_text", "operator": "regex_contains",
"operand": "^(?:\t| |\\)|]|;|\\}|$)", "match_all": true }
]
},
{ "keys": ["("], "command": "insert_snippet", "args": {"contents":
"(${0:$SELECTION})"}, "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal",
"operand": true },
{ "key": "selection_empty", "operator": "equal", "operand":
false, "match_all": true }
]
},
{ "keys": [")"], "command": "move", "args": {"by": "characters", "forward":
true}, "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal",
"operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": true,
"match_all": true },
{ "key": "following_text", "operator": "regex_contains",
"operand": "^\\)", "match_all": true }
]
},
{ "keys": ["backspace"], "command": "run_macro_file", "args": {"file":
"res://Packages/Default/Delete Left Right.sublime-macro"}, "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal",
"operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": true,
"match_all": true },
{ "key": "preceding_text", "operator": "regex_contains",
"operand": "\\($", "match_all": true },
{ "key": "following_text", "operator": "regex_contains",
"operand": "^\\)", "match_all": true }
]
},
{
"keys": ["alt+shift+1"],
"command": "set_layout",
"args":
{
"cols": [0.0, 1.0],
"rows": [0.0, 1.0],
"cells": [[0, 0, 1, 1]]
}
},
{
"keys": ["alt+shift+2"],
"command": "set_layout",
"args":
{
"cols": [0.0, 0.5, 1.0],
"rows": [0.0, 1.0],
"cells": [[0, 0, 1, 1], [1, 0, 2, 1]]
}
},
{
"keys": ["alt+shift+3"],
"command": "set_layout",
"args":
{
"cols": [0.0, 0.33, 0.66, 1.0],
"rows": [0.0, 1.0],
"cells": [[0, 0, 1, 1], [1, 0, 2, 1], [2, 0, 3, 1]]
}
},
{
"keys": ["alt+shift+4"],
"command": "set_layout",
"args":
{
"cols": [0.0, 0.25, 0.5, 0.75, 1.0],
"rows": [0.0, 1.0],
"cells": [[0, 0, 1, 1], [1, 0, 2, 1], [2, 0, 3, 1], [3, 0, 4, 1]]
}
},
{
"keys": ["alt+shift+8"],
"command": "set_layout",
"args":
{
"cols": [0.0, 1.0],
"rows": [0.0, 0.5, 1.0],
"cells": [[0, 0, 1, 1], [0, 1, 1, 2]]
}
},
{
"keys": ["alt+shift+9"],
"command": "set_layout",
"args":
{
"cols": [0.0, 1.0],
"rows": [0.0, 0.33, 0.66, 1.0],
"cells": [[0, 0, 1, 1], [0, 1, 1, 2], [0, 2, 1, 3]]
}
},
{
"keys": ["alt+shift+5"],
"command": "set_layout",
"args":
{
"cols": [0.0, 0.5, 1.0],
"rows": [0.0, 0.5, 1.0],
"cells":
[
[0, 0, 1, 1], [1, 0, 2, 1],
[0, 1, 1, 2], [1, 1, 2, 2]
]
}
},
{ "keys": ["ctrl+1"], "command": "focus_group", "args": { "group": 0 } },
{ "keys": ["ctrl+2"], "command": "focus_group", "args": { "group": 1 } },
{ "keys": ["ctrl+3"], "command": "focus_group", "args": { "group": 2 } },
{ "keys": ["ctrl+4"], "command": "focus_group", "args": { "group": 3 } },
{ "keys": ["ctrl+5"], "command": "focus_group", "args": { "group": 4 } },
{ "keys": ["ctrl+6"], "command": "focus_group", "args": { "group": 5 } },
{ "keys": ["ctrl+7"], "command": "focus_group", "args": { "group": 6 } },
{ "keys": ["ctrl+8"], "command": "focus_group", "args": { "group": 7 } },
{ "keys": ["ctrl+9"], "command": "focus_group", "args": { "group": 8 } },
{ "keys": ["ctrl+shift+1"], "command": "move_to_group", "args": { "group":
0 } },
{ "keys": ["ctrl+shift+2"], "command": "move_to_group", "args": { "group":
1 } },
{ "keys": ["ctrl+shift+3"], "command": "move_to_group", "args": { "group":
2 } },
{ "keys": ["ctrl+shift+4"], "command": "move_to_group", "args": { "group":
3 } },
{ "keys": ["ctrl+shift+5"], "command": "move_to_group", "args": { "group":
4 } },
{ "keys": ["ctrl+shift+6"], "command": "move_to_group", "args": { "group":
5 } },
{ "keys": ["ctrl+shift+7"], "command": "move_to_group", "args": { "group":
6 } },
{ "keys": ["ctrl+shift+8"], "command": "move_to_group", "args": { "group":
7 } },
{ "keys": ["ctrl+shift+9"], "command": "move_to_group", "args": { "group":
8 } },
{ "keys": ["ctrl+0"], "command": "focus_side_bar" },