3

I'm looking for a way to auto-format code in Atom.io, but so far I did not find anything useful in the forums...

I know other IDEs have this feature. For example in Netbeans there is a feature to auto-format code that is configurable (Tools>Options>Editor) in terms of style and language where you can fine-tune any aspect of formatting, such as spaces before keywords or parentheses, specific keyword indentation, tab size, indent size, braces placement and so on.

Is there anything similar in Atom.io, or is there a way to emulate, maybe only partially, this auto-format features?

2 Answers 2

2

Have you check Atom Beautify ?

1
  • 2
    Thank you, very helpful. I had to install also Uncrustify from the Ubuntu rep and download a style file, but now it works like a charm! Mar 16, 2015 at 14:49
2

my atom version is 1.8.0. In keymap.cson, I use this: 'atom-workspace atom-text-editor:not([mini])': 'ctrl-alt-i': 'editor:auto-indent'

1
  • It works fine! Also, ctrl-shift-f is possible to keep the same as Netbeans.
    – Anthony
    Jun 13, 2017 at 11:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.