Last active
March 16, 2019 13:47
-
-
Save MakarovCode/a987392990b6ecb5ea1b742b6a88ab55 to your computer and use it in GitHub Desktop.
Configuraciones Atom
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
atom.commands.add 'atom-text-editor', 'custom:reformat', -> | |
editor = atom.workspace.getActiveTextEditor(); | |
oldRanges = editor.getSelectedBufferRanges(); | |
editor.selectAll(); | |
atom.commands.dispatch(atom.views.getView(editor), 'editor:auto-indent') | |
editor.setSelectedBufferRanges(oldRanges); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#MAC OS X | |
'atom-text-editor': | |
'cmd-d': 'editor:duplicate-lines', | |
'cmd-up': 'editor:move-line-up', | |
'cmd-down': 'editor:move-line-down', | |
'cmd-i': 'custom:reformat' | |
'cmd-g': 'go-to-line:toggle' | |
'ctrl-i': 'find-and-replace:find-next' | |
'.platform-darwin atom-text-editor': | |
'shift-cmd-d': 'find-and-replace:select-next' | |
'body': | |
'shift-cmd-up': 'core:move-to-top', | |
'shift-cmd-down': 'core:move-to-bottom' | |
'.platform-darwin atom-workspace': | |
'alt-t': 'platformio-ide-terminal:toggle' | |
'.platform-darwin': | |
'cmd-<': 'tree-view:toggle' | |
#WINDOWS | |
'atom-text-editor': | |
'ctrl-d': 'editor:duplicate-lines', | |
'ctrl-up': 'editor:move-line-up', | |
'ctrl-down': 'editor:move-line-down', | |
'ctrl-i': 'custom:reformat' | |
'ctrl-g': 'go-to-line:toggle' | |
'ctrl-shift-i': 'find-and-replace:find-next' | |
'.platform-darwin atom-text-editor': | |
'shift-ctrl-d': 'find-and-replace:select-next' | |
'body': | |
'shift-ctrl-up': 'core:move-to-top', | |
'shift-ctrl-down': 'core:move-to-bottom' | |
'.platform-darwin atom-workspace': | |
'alt-t': 'platformio-ide-terminal:toggle' | |
'.platform-darwin': | |
'ctrl-<': 'tree-view:toggle' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment