focusaurus / atom-format-shell

Format shell script from within atom text editor
MIT License
6 stars 1 forks source link

Is there a short cut for formatting a file? #6

Closed fkromer closed 6 years ago

fkromer commented 6 years ago

Is there a short cut to format the currently active file? (Instead of using Packages -> Format Shell Script)

focusaurus commented 6 years ago

There is a command with the name format-shell:format which you can bind to the keyboard short cut of your choosing.

focusaurus commented 6 years ago

Here's how I have mine bound for example (from keymap.cson)

'atom-workspace':
  'ctrl-. f s s': 'format-shell:format'