'Intellij Refactor Java Code is different from Mac than from Windows even though the same code style schema is used. why?

I am using macOS 12.2.

The code should look like this, and this is how is reformatted on a windows machine.

router.POST().route(
        "/api/randomStuff") // random comment
        .with(RandomClass::getRandomThing);

This is how it looks on a Mac machine:

router.POST().route(
            "/api/randomStuff") // random comment
        .with(RandomClass::getRandomThing);

Mac machine ads a new TAB when a function parameter is set. Why?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source