How to auto-indent code in the Atom editor?

后端 未结 11 1482
野的像风
野的像风 2020-12-07 07:04

How do you auto-indent your code in the Atom editor? In other editors you can usually select some code and auto-indent it.

Is there a keyboard shortcut as well?

11条回答
  •  -上瘾入骨i
    2020-12-07 07:35

    I was working on some groovy code, which doesn't auto-format on save. What I did was right-click on the code pane, then chose ESLint Fix. That fixed my indents.

提交回复
热议问题