Skip to content

Instantly share code, notes, and snippets.

@Maysora
Last active March 31, 2023 04:41
Show Gist options
  • Save Maysora/fdb5756c18e34075ca3e73945cabc089 to your computer and use it in GitHub Desktop.
Save Maysora/fdb5756c18e34075ca3e73945cabc089 to your computer and use it in GitHub Desktop.
SublimeText4 OSX Setting
{
"save_on_beautify": false,
"tab_size": 2,
"ruby": "~/.rbenv/shims/ruby",
}
[
{ "keys": ["shift+backspace"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete Line.sublime-macro"} },
{ "keys": ["super+n"], "command": "fm_create", "args": { "initial_text": "$here/" } },
{ "keys": ["super+ctrl+left"], "command": "unindent" },
{ "keys": ["super+ctrl+right"], "command": "indent" },
{ "keys": ["super+ctrl+shift+up"], "command": "duplicate_lines", "args": { "up": true } },
{ "keys": ["super+ctrl+shift+down"], "command": "duplicate_lines" },
{ "keys": ["super+shift+w"], "command": "close_all" },
{ "keys": ["super+ctrl+w"], "command": "close_others_by_index", "args": {"group": -1, "index": -1} },
{ "keys": ["ctrl+`"], "command": "focus_side_bar" },
{ "keys": ["super+shift+r"], "command": "reveal_in_side_bar" },
{ "keys": ["super+shift+."], "command": "erb" },
{ "keys": ["super+ctrl+f"], "command": "beautify_ruby", "context": [
{ "key": "selector", "operator": "equal", "operand": "source.ruby|text.html.ruby|text.html.rails" }
] },
{ "keys": ["super+ctrl+f"], "command": "reindent", "context": [
{ "key": "selector", "operator": "not_equal", "operand": "source.ruby|text.html.ruby|text.html.rails" }
], "args": {"single_line": false} },
]
{
"bootstrapped": true,
"in_process_packages":
[
],
"installed_packages":
[
"BeautifyRuby",
"ChangeQuotes",
"Duplicate Lines",
"Emmet",
"FileManager",
"MarkdownEditing",
"MarkdownPreview",
"Package Control",
"SublimeERB",
"SublimeLinter",
"SublimeLinter-contrib-erblint",
"SublimeLinter-ruby",
],
}
// Settings in here override those in "Default/Preferences.sublime-settings",
// and are overridden in turn by syntax-specific settings.
{
"find_selected_text": true,
"default_line_ending": "unix",
"detect_indentation": false,
"font_size": 12,
"highlight_modified_tabs": true,
"indent_to_bracket": false,
"show_full_path": true,
"show_tab_close_buttons": false,
"tab_size": 2,
"translate_tabs_to_spaces": true,
"trim_trailing_white_space_on_save": true,
"match_brackets_angle": true,
}
// SublimeLinter Settings - User
{
// "debug": true,
"linters": {
"ruby": {
"executable": "~/.rbenv/shims/ruby"
},
"erblint": {
"executable": "~/.rbenv/shims/erblint",
"selector": "text.html.ruby, text.html.rails"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment