Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to change the auto format shortcut in netbeans?

I know that you can auto-format your code in netbeans by pressing Alt+Shift+F, but is there a way to change this key combination to something else, to bind it to some othr keys?

like image 240
Jo Smo Avatar asked Jul 02 '14 17:07

Jo Smo


People also ask

How do I change keyboard shortcuts in NetBeans?

Options Window. The Options window enables you to set general IDE settings, edit any of the IDE's configurable settings and set keyboard shortcuts. You open the Options window by choosing Tools > Options. (On Mac OS X, choose NetBeans > Preferences.)

How do I change indentation in NetBeans?

To format all the code in NetBeans, press Alt + Shift + F. If you want to indent lines, select the lines and press Alt + Shift + right arrow key, and to unindent, press Alt + Shift + left arrow key.

How do I mass indent in NetBeans?

You can select multiple lines of code and then indent all those lines by pressing Tab or Ctrl-T. You can reverse indentation of lines by selecting those lines and then pressing Shift-Tab or Ctrl-D.


1 Answers

Answer is yes. Go to Tools -> Options. You'll get the "Options" pop-up window - choose the "Keymap" tab and type the "Format" into the Search field:

enter image description here

Then push the "..." button...

like image 145
HEKTO Avatar answered Oct 06 '22 18:10

HEKTO