How do I autoindent in Netbeans?

后端 未结 10 1254
挽巷
挽巷 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:56

    I have netbeans 6.9.1 open right now and ALT+SHIFT+F indents only the lines you have selected.

    If no lines are selected then it will indent the whole document you are in.

    1 possibly unintended behavior is that if you have selected ONLY 1 line, it must be selected completely, otherwise it does nothing. But you don't have to completely select the last line of a group nor the first.

    I expected it to indent only one line by just selecting the first couple of chars but didn't work, yea i know i am lazy as hell...

提交回复
热议问题