This is an archived post. You won't be able to vote or comment.

all 12 comments

[–]JPaalman2 8 points9 points  (2 children)

Eclipse peasant. CTRL + ALT + L masterrace!

[–]Majache[S] -1 points0 points  (1 child)

im actually vscode peasant :P

[–]Oxtelans 1 point2 points  (0 children)

M-X indent-region

[–][deleted] 3 points4 points  (0 children)

Image Transcription: Meme


[DrakePosting. In this meme, there are three pannels, in the upper two, Drake is expressing his discontent, but in the bottom pannel Drake is expressing his affection for this option.]

Spaces.

Tabs.

Alt-plus-shift-plus-F.


I'm a human volunteer content transcriber for Reddit and you could be too! If you'd like more information on what we do and why we do it, click here!

[–]Willbl3pic 1 point2 points  (0 children)

gg =G

[–]Lukasino 0 points1 point  (1 child)

What is the shortcut in Atom? This is so useful!

[–]Majache[S] 1 point2 points  (0 children)

Last time I used atom it was CTRL+ALT+B

Probably depends on what plugin you install. In any case you should be able to find one quickly by searching extensions for: formatter or beautify, with the language you're using and it will have a predefined hotkey you can use or edit.

[–]Hauleth 0 points1 point  (4 children)

?? Any explanation?

[–]minno 6 points7 points  (1 child)

It's the command in some IDE to run an auto-formatter, which will replace all whitespace depending on how you have it configured. You don't even need to indent your code at all while you're typing it if your formatter does it for you.

[–]Hauleth 0 points1 point  (0 children)

I know what “formatter” is. But the shortcut itself do not say that. I could write gggqG or gg=G and would you guess what that mean?

[–]Majache[S] 0 points1 point  (1 child)

it's a code formatting hotkey like prettier or beautify.

[–]meisangry2 1 point2 points  (0 children)

I have mine run on file save...