Alex Rivera | Logout

How do I autoindent in Netbeans?

Asked 2009-08-21T13:22:28.940
161

In eclipse you can click Ctrl+I at any line, and it'll automatically indent the line or group of lines according to the indentation scheme you chose in the settings.

I'm really missing this feature in Netbeans. Is there any equivalent feature?

I'm aware of Alt+Shift+F but it's not good enough. I want to indent a group of lines, and not all the file.

Edit
Report

1 Answer

101

Open Tools -> Options -> Keymap, then look for the action called "Re-indent current line or selection" and set whatever shortcut you want.

answered 2009-08-24T17:20:11.757

Your Answer