Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I make CTRL-SHIFT-S bind to Save All in Atom?

I tried to follow the directions in the Keybindings settings, but it didn't work.

enter image description here

I copied the default entry, opened the keymap file, pasted, changed to 'all', and saved.

'body':
  'ctrl-shift-S': 'core:save-all'

I changed two files then presses CTRL-SHIFT-S but they still had the blue modified marker.

I tried the 'keybinding resolver' mentioned in the comments with CTRL-., and it seems to recognize what I created, but it's not saving all files.

enter image description here

Atom 1.27.2

like image 905
Chloe Avatar asked Jun 08 '18 00:06

Chloe


People also ask

How do I save all files in atom?

To save a file you can choose File > Save from the menu bar or Ctrl+S to save the file. If you choose File > Save As or press Ctrl+Shift+S then you can save the current content in your editor under a different file name. Finally, you can choose File > Save All or press Alt+Cmd+S to save all the open files in Atom.

How do you add Keybinds in an atom?

You have to go to Edit -> Preferences -> Keybinding. In this tab you can see your actual binding and if you want to change it, you can access to the keymap file and overcharged configuration. To access this file you can click on the link below the "Keybindings" title.

How do I enable keybinding in atom core?

This package is a part of Atom core, no additional installation is required. To see it in action, open any file, open command palette, search "keybinding resolver" and select "Key Binding Resolver: Toggle". Keybinding for keybinding-resolver is ctrl-..

How do I save a file in atom?

Ctrl+S to save the file. If you choose File > Save As or press Ctrl+Shift+S then you can save the current content in your editor under a different file name. Finally, you can choose File > Save All to save all the open files in Atom.

How to show what command resolves to a specific file in atom?

In this case you should use keybinding-resolver, a package which shows what command resolves to. This package is a part of Atom core, no additional installation is required. To see it in action, open any file, open command palette, search "keybinding resolver" and select "Key Binding Resolver: Toggle".

What are the keyboard shortcuts for Atom text editor?

Download the Atom Text Editor Keyboard Shortcuts Cheat Sheet. Ctrl + Alt + . ⌘ + Option + . Ctrl + Alt + . With these keyboard shortcuts, you can take your project development speed to the next level. You can also manage and keep track of source code using the embedded Git Control in Atom.


1 Answers

You need to change the core to window

'body':
  'ctrl-shift-S':'window:save-all'

See https://github.com/atom/atom/issues/9390

like image 189
andrewgi Avatar answered Nov 15 '22 15:11

andrewgi