Skip to content

Instantly share code, notes, and snippets.

@VMashanov
Last active January 23, 2017 14:04
Show Gist options
  • Save VMashanov/bc7f362c50202ce1ad35fe0e34a8836c to your computer and use it in GitHub Desktop.
Save VMashanov/bc7f362c50202ce1ad35fe0e34a8836c to your computer and use it in GitHub Desktop.
Общие настройки
--------------------------------------------------------------------------------------------
{
"bold_folder_labels": true,
"caret_style": "wide",
"color_scheme": "Packages/User/SublimeLinter/Monokai Bright (SL).tmTheme",
"default_encoding": "UTF-8",
"default_line_ending": "unix",
"ensure_newline_at_eof_on_save": true,
"font_size": 8,
"highlight_line": true,
"highlight_modified_tabs": true,
"ignored_packages":
[
"Vintage"
],
"line_padding_bottom": 1,
"line_padding_top": 1,
"show_encoding": true,
"show_line_endings": true,
"tab_size": 2,
"translate_tabs_to_spaces": true,
"trim_trailing_white_space_on_save": true
}
Плагины и настройки для них
-------------------------------------------------------------------------------------------
1) SublimeGit
{
"git_executables": {
"git": ["/usr/bin/git"],
"git_flow": ["/usr/bin/git", "flow"],
"legit": ["legit"]
}
}
2) BracketHighlighter
3) GitGutter
4) GitConflictResolver
[
{ "keys": ["ctrl+alt+f"], "command": "find_next_conflict" },
{ "keys": ["ctrl+alt+o"], "command": "keep", "args": { "keep": "ours" } },
{ "keys": ["ctrl+alt+t"], "command": "keep", "args": { "keep": "theirs" } },
{ "keys": ["ctrl+alt+a"], "command": "keep", "args": { "keep": "ancestor" } },
{ "keys": ["ctrl+alt+c"], "command": "list_conflict_files" }
]
5) Inden XML
6) Case Conversion
7) SublimeLinter, SublimeLinter-rubocop
Установите гем rubocop:
gem install rubocop
Настройка самого плагина будет доступна через контекстное меню --> SublimeLinter. Или через меню Tools --> SublimeLinter. Или через ctrl+shift+p.
Настройки для rubocop:
{
"user": {
"debug": false,
"delay": 0.25,
"error_color": "D02000",
"gutter_theme": "Packages/SublimeLinter/gutter-themes/Default/Default.gutter-theme",
"gutter_theme_excludes": [],
"lint_mode": "background",
"linters": {
"rubocop": {
"@disable": false,
"args": [
"--config",
"${home}/Projects/rubocop.yml"
],
"excludes": []
}
},
"mark_style": "fill",
"no_column_highlights_line": false,
"passive_warnings": false,
"paths": {
"linux": [
"~/.rbenv/shims"
],
"osx": [],
"windows": []
},
"python_paths": {
"linux": [],
"osx": [],
"windows": []
},
"rc_search_limit": 3,
"shell_timeout": 10,
"show_errors_on_save": false,
"show_marks_in_minimap": true,
"syntax_map": {
"html (django)": "html",
"html (rails)": "html",
"html 5": "html",
"javascript (babel)": "javascript",
"magicpython": "python",
"php": "html",
"python django": "python",
"pythonimproved": "python"
},
"warning_color": "DDB700",
"wrap_find": true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment