How do I autoindent in Netbeans?

后端 未结 10 1226
挽巷
挽巷 2020-12-02 05:25

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 i

10条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-02 05:44

    for Java NetBeans 7.1 and later, even in NetBeans 8.0 (That i´m currently using) and later, the shortcut is:

    Alt+Shift+F

    if you look into the KeyMap accessing from the menu: Tools -> Options -> Keymap, the "action" is Format defined with the Shortcut : Alt+Shift+F

提交回复
热议问题