A shortcut for formatting the file content or a portion of code

I have not found this feature, is it planed ?

3 Likes

So far there seem to be a few plugins starting to address this. Personally I would like to see a lot more work on this front, I use this functionality quite a lot for javascript and html formatting.

a basic version can be made by putting this in your keymap file:

'.editor:not(.mini)':
  'alt-cmd-l': 'editor:auto-indent'
3 Likes

Thanks Agos, exactly what I needed!

Solution by Agos is for Mac, the Keymap code including also Linux/Windows would be:

'.editor:not(.mini)':
  'alt-ctrl-l': 'editor:auto-indent' # for Linux/Windows
  'alt-cmd-l': 'editor:auto-indent' # for Mac