Autoformat code to align whitespace

Is there a way to autoformat your code in the SDK code editor window?

I have a nasty habit of just typing, copying, cutting and pasting code left and right and it looks messy.

Any quick autoformat button?

GOOGLE

Didn’t realize it was Netbeans IDE.

For other people’s information:

Shortcut : Alt+Shift+F
or
Source -> Format

2 Likes
@buggy said: Didn't realize it was Netbeans IDE.

For other people’s information:

Shortcut : Alt+Shift+F
or
Source -> Format


Ok, I just thought that was pretty obvious :stuck_out_tongue: and couldn’t resist that post ^.^

Ctrl + Shift + I (for auto importing is extremely useful as well), think it’s Ctrl + Shift + O in Eclipse (been a while since I tried it there tho)

1 Like