NetBeans 12.6 does not indent new lines while typing

I used to develop Java in an older version of NetBeans that indents new lines while we are typing, but recently I installed 12.6 version and the behavior changed.

I am expecting that while I am typing and insert a new line, NetBeans automatically indents the new line. But, to my surprise, the new line is set to the far left.

I will try to be more visual. In the example below, the pipe "|" is my cursor. So, when I insert a new line, the cursor moves all the way to the left, like in example 1. But, what I want to happen is that NetBeans automatically positions the cursor in the proper location, like in Example 2, where the cursor is in the same indent as the line that has "more code".

Example 1 - What is happening:

if (variable == true) {
    code
    more code
|

Example 2 - What I need to happen:

if (variable == true) {
    code
    more code
    |

How can I configure this behavior?

Upvotes: 3

Views: 893

Answers (1)

Downgrading to 12.4 did the trick. Now NetBeans indenation is working as expected.

Once againd, I thank you all guys!

Best Regards!

Upvotes: 0

Related Questions