How to create organised code without spacebar?

I was wondering how to make new line with space in, without hitting enter and press space multiple times? Is there a short cut or combination to do that, so my code should look more organised?

Some IDE and text-editor do this, some by default, sometimes with plugins/configuration. And you could use tab instead of space

It’s also helpful to know that by default, TAB inserts 4 spaces.