NetBeans, Disable ** ANY ** auto-indent / auto-format

I just tried NetBeans and I really like it. But what drives me crazy is awful automatic code formatting!

If I indent, I want to indent, but NetBeans keeps going right in the formatting style defined in Tools -> Options -> Editor -> Formatting.

For example, let's say I want to do the following:

namespace cn { // this has 1 indentation // this has 2 indentations class Foo; } 

NetBeans turns it into:

 namespace cn { // this has 1 indentation // this has 2 indentations class Foo; } 

It automatically deletes one of the two indentation when entering any character except / .

Is there an option that I missed that disables any automatic indentation?

Even this can lead to disabling very good de-indexing with the curly brace closed.

+6
source share
1 answer

I was looking for the same thing, and I'm afraid the answer is no.

I use Netbeans for PHP, and if I go to Tools -> Options -> Editor -> Formatting, there is an option called "number of spaces per indent", the problem is that it cannot be set to 0, Frustrated if not to say more, as I expected that I could choose whether to back off or not want to use my keyboard.

0
source

Source: https://habr.com/ru/post/899321/


All Articles