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?
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.)
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.
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.
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:
Then push the "..." button...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With