Skip to content

Instantly share code, notes, and snippets.

@derlin
Last active April 25, 2017 13:13
Show Gist options
  • Save derlin/b36f5be62f8c3d136f07d699624553cc to your computer and use it in GitHub Desktop.
Save derlin/b36f5be62f8c3d136f07d699624553cc to your computer and use it in GitHub Desktop.
miscellanous configurations
// miscellanous configuration files for IDE and tools
'atom-workspace atom-text-editor:not([mini])':
# Duplicate current line or selected block
'ctrl-alt-y': 'editor:duplicate-lines'
# toggle comments
'ctrl-7': 'editor:toggle-line-comments'
# Select successively increasing code blocks
'ctrl-up': 'editor:select-to-next-subword-boundary'
# Decrease current selection to previous state
'ctrl-down': 'editor:select-to-previous-subword-boundary'
# Delete line at caret
'ctrl-d': 'editor:delete-line'
# Move line up
'alt-up': 'editor:move-line-up'
# Move line down
'alt-down': 'editor:move-line-down'
[
{ "keys": ["alt+up"], "command": "swap_line_up" },
{ "keys": ["alt+down"], "command": "swap_line_down" },
{ "keys": ["ctrl+alt+y"], "command": "duplicate_line" },
{ "keys": ["ctrl+d"], "command": "run_macro_file", "args": {"file": "Packages/Default/Delete Line.sublime-macro"} },
{ "keys": ["ctrl+space"], "command": "auto_complete" },
{ "keys": ["ctrl+space"], "command": "replace_completion_with_auto_complete", "context":
[
{ "key": "last_command", "operator": "equal", "operand": "insert_best_completion" },
{ "key": "auto_complete_visible", "operator": "equal", "operand": false },
{ "key": "setting.tab_completion", "operator": "equal", "operand": true }
]
},
{ "keys": ["ctrl+7"], "command": "toggle_comment", "args": { "block": false } },
{ "keys": ["ctrl+/"], "command": "toggle_comment", "args": { "block": true } },
{ "keys": ["ctrl+shift+t"], "command": "reindent", "args": {"single_line": false} }
]
{
//"dictionary": "Packages/Language - French - Français/fr_FR.dic",
"font_size": 9,
"hide_minimap": true,
"hot_exit": false,
"remember_open_files": false,
"show_minimap": false,
"tab_size": 4,
"translate_tabs_to_spaces": true,
"word_wrap": true
}
{
"color_scheme": "Packages/One Dark Material - Theme/schemes/OneDark.tmTheme",
"dictionary": "Packages/Language - French - Français/fr_FR.dic",
"font_size": 12,
"font_face": "Inconsolata",
"hide_minimap": true,
"hot_exit": false,
"ignored_packages":
[
"Better CoffeeScript",
"DoxyDoc",
"Markdown",
"VimL",
"Vintage"
],
"remember_open_files": false,
"show_minimap": false,
"tab_size": 4,
"theme": "OneDarkMaterial.sublime-theme",
"translate_tabs_to_spaces": true,
"word_wrap": true,
"highlight_line": true,
"line_padding_bottom": 1,
"line_padding_top": 1,
"fade_fold_buttons": false,
"bold_folder_labels": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment