Skip to content

Instantly share code, notes, and snippets.

@rdbox
Last active June 9, 2017 15:33
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 rdbox/47ccbe2a9d470249d9af28da8820dac2 to your computer and use it in GitHub Desktop.
Save rdbox/47ccbe2a9d470249d9af28da8820dac2 to your computer and use it in GitHub Desktop.
[
//Package Control
{ "keys": ["alt+p"], "command": "show_overlay", "args": {"overlay": "command_palette"} },
{ "keys": ["ctrl+shift+q"], "command": "replace_all", "args": {"close_panel": true}},
{ "keys": ["ctrl+q"], "command": "replace_next" },
//Инвертированное выделение
{ "keys": ["ctrl+shift+a"], "command": "invert_selection"},
{ "keys": ["alt+shift+r"], "command": "toggle_regex", "context": [{ "key": "setting.is_widget", "operator": "equal", " operand": true } ] },
//StringEscape шифрует и дешифрует текст
{"keys": ["ctrl+0"], "command": "string_encode_paste"}, //Меню StringEscape
{"keys": ["ctrl+1"], "command": "json_escape"},
{"keys": ["ctrl+2"], "command": "json_unescape"},
{"keys": ["ctrl+3"], "command": "url_encode"},
{"keys": ["ctrl+4"], "command": "url_decode"},
{"keys": ["ctrl+6","ctrl+4"], "command": "base64_encode"},
{"keys": ["alt+ctrl+6","alt+ctrl+4"], "command": "base64_decode"},
{"keys": ["ctrl+e","ctrl+5"], "command": "md5_encode"},
{"keys": ["ctrl+e","ctrl+s"], "command": "sha512_encode"},
/**********************************
BRACKETS
**********************************/
//Хоткей Меняет одинарный кавычки на двойные
//Brackets
{"keys": ["alt+q"],"command": "bh_key","args":{"lines" : true,"plugin":{
"type": ["single_quote", "double_quote", "py_single_quote", "py_double_quote"],
"command": "bh_modules.swapquotes"}}},
{"keys": ["alt+]"], "command": "bh_key", "args": {"plugin": {"type": ["__all__"], "command" : "bh_modules.foldbracket"} } },
{ "keys": ["alt+["], "command": "unfold" },
//Свободные не назначенные Хоты
{ "keys": ["ctrl+shift+["], "command": "none" },
{ "keys": ["ctrl+shift+]"], "command": "none" },
{ "keys": ["ctrl+shift+p"], "command": "none"},
{ "keys": ["shift+ctrl+u"], "command": "none"},
{ "keys": ["ctrl+g"], "command": "none" },
{ "keys": ["ctrl+;", "<character>"], "command": "none" },
{ "keys": ["ctrl+;", "enter"], "command": "none" },
{ "keys": ["ctrl+shift+h"], "command": "none" },
{ "keys": ["shift+ctrl+;"], "command": "none"},
//Bookmark заметки в участках кода
{ "keys": ["f2"], "command": "toggle_bookmark" },
{ "keys": ["alt+f2"], "command": "next_bookmark" },
{ "keys": ["shift+f2"], "command": "prev_bookmark" },
{ "keys": ["shift+alt+f2"], "command": "select_all_bookmarks" },
{ "keys": ["ctrl+shift+f2"], "command": "clear_bookmarks" },
/*
**********************************
Форматировения HTML и CSS кода подстветка ошибок JavaScript
*********************************
*/
//Форматироания кода HTML
{ "keys": ["alt+a"], "command": "alignment" },
{"keys": ["alt+shift+a"], "command": "html_beautify",
"context": [{"key": "selector","operator": "equal",
"operand": "text.html,text.html.twig,text.twig,source.html,source.html.twig,source.twig"}]},
//Отключил хоткей так как нашел замену этому html_beautify
//{ "keys": ["shift+alt+a"], "command": "reindent" },
//JavaScript форматирование кода
{
"keys": ["shift+alt+f"], "command": "js_format",
"context": [{"key": "selector", "operator": "equal", "operand": "source.js,source.json"}]
},
//Подсветка ошибок JavaScript кода
{ "keys": ["alt+s","a"], "command": "sublimelinter_show_all_errors" },
//Переход на следующую вкладку
{ "keys": ["ctrl+tab"], "command": "prev_view_in_stack" },
//переход на предыдущую вкладку
{ "keys": ["ctrl+shift+tab"], "command": "next_view_in_stack" },
//################ END HTML CSS
/*
**********************************
Поиск ID и CLASS в CSS файле
**********************************
*/
{"keys": ["ctrl+shift+]"], "command": "goto_css_declaration","args": {"goto": "next"}},
{"keys": ["ctrl+shift+["], "command": "goto_css_declaration","args": {"goto": "prev"}},
//################ END HTML CSS
/*
*********************************
Поиск и замена строк и значений
*********************************
*/
//Поиск по словам переменным теги и т.д
{ "keys": ["ctrl+r"], "command": "show_overlay", "args": {"overlay": "goto", "text": "#"} },
//Поиск по ID и по function
{ "keys": ["ctrl+shift+r"], "command": "show_overlay", "args": {"overlay": "goto", "text": "@"} },
//Поиск вперед и назад
{ "keys": ["ctrl+f3"], "command": "find_prev" },
{ "keys": ["shift+f3"], "command": "find_under" },
//Вставляет строку в буфер поиска а замены
// альтернативный вариант Хота ctrl+e
{ "keys": ["alt+f"], "command": "slurp_find_string" },
{ "keys": ["alt+r"], "command": "slurp_replace_string" },
//Поиски замена в документе
//Хот ctrl+shift+h автопоиск и замена в зависимости что находиться в буфере поиска
{ "keys": ["ctrl+h"], "command": "show_panel", "args": {"panel": "replace", "reverse": false} },
//################ END блока настроек Поиска и замены
//Кликает в бразере по url ссылкам
//еще есть назначения клавиш ctrl+shift+g поиск слова в google
{ "keys": ["f1"], "command": "open_url_under_cursor" },
//Easy Moution выделение текста через символы
{ "keys": ["alt+;", "<character>"], "command": "easy_motion", "args": {"select_text": false,"character": "enter"} },
{ "keys": ["alt+shift+;", "<character>"],"command": "easy_motion","args": {"select_text": true}},
{ "keys": ["alt+shift+;", "enter"], "command": "easy_motion","args": {"select_text": true, "character": "enter"}},
/*
*********************************
Хоткаты для Emmet
Тут все Хоты по плагину Emmet
*********************************
*/
//Изменения в 1px
{"keys": ["ctrl+up"], "args": {"action": "increment_number_by_1"},
"command": "run_emmet_action", "context": [{
"key": "emmet_action_enabled.increment_number_by_1"}]},
//Изменения в 10px
{"keys": ["alt+up"], "args": {"action": "increment_number_by_10"},
"command": "run_emmet_action",
"context": [{"key": "emmet_action_enabled.increment_number_by_10"}]},
//Изменения в 10px
{"keys": ["alt+down"], "args": {"action": "decrement_number_by_10"},
"command": "run_emmet_action", "context": [{
"key": "emmet_action_enabled.decrement_number_by_10"}]},
//Удаление тега HTML
{"keys": ["shift+ctrl+'"], "args": {"action": "remove_tag"},
"command": "run_emmet_action", "context": [{"key": "emmet_action_enabled.remove_tag"}]},
//Выделяет и переменовывает тег
{"keys": ["ctrl+'"], "command": "rename_tag", "context": [{
"key": "emmet_action_enabled.rename_tag"}]},
//Переход к тегу и атрибутам
{"keys": ["ctrl+."], "args": {"action": "select_next_item"},
"command": "run_emmet_action", "context": [{"key": "emmet_action_enabled.select_next_item"}]},
//Переход к тегу и атрибутам
{"keys": ["ctrl+,"], "args": {"action": "select_previous_item"},
"command": "run_emmet_action",
"context": [{"key": "emmet_action_enabled.select_previous_item"}]},
//Выделяет текст и вставляет HTML Emmet теги
{"keys": ["ctrl+alt+w"], "command": "wrap_as_you_type",
"context": [{"operand": false, "operator": "equal", "match_all": true, "key": "setting.is_widget"}, {
"match_all": true, "key": "emmet_action_enabled.wrap_as_you_type"}]},
//Выделяет контент внутри тега вперед ->
{"keys": ["ctrl+shift+."], "args": {"action": "balance_inward"},
"command": "run_emmet_action", "context": [{"key": "emmet_action_enabled.balance_inward"}]},
//Выделяет контент внутри тега назад <-
{"keys": ["ctrl+shift+,"], "args": {"action": "balance_outward"},
"command": "run_emmet_action", "context": [{"key": "emmet_action_enabled.balance_outward"}]},
//Обновление атрибутов тега img
{"keys": ["ctrl+u"], "args": {"action": "update_image_size"},
"command": "run_emmet_action", "context": [{"key": "emmet_action_enabled.update_image_size"}]},
//Вносит CSS изменения рефлект значения быстрое обновление
{"keys": ["ctrl+alt+r"], "args": {"action": "reflect_css_value"},
"command": "run_emmet_action", "context": [{"key": "emmet_action_enabled.reflect_css_value"}]},
//################ END EMMET
/**********************************
COLOR PICKER
**********************************/
{ "keys": ["ctrl+shift+c"], "command": "color_pick" },
/**********************************
FOLD CODE
// **********************************/
// { "keys": ["alt+]"], "command": "fold" },
// { "keys": ["alt+["], "command": "unfold" },
// { "keys": ["alt+]", "a"], "command": "fold_tag_attributes" },
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment