Java 在IntelliJ IDEA中,如何禁用简单方法的自动格式化

Java 在IntelliJ IDEA中,如何禁用简单方法的自动格式化,java,intellij-idea,formatting,ide,Java,Intellij Idea,Formatting,Ide,制作简单的方法后,例如: public int getWidth() { return game.getWidth(); } public int getHeight() { return game.getHeight(); } public Game getGame() { return game; } 它将被重新格式化为: public int getWidth() { return ga

制作简单的方法后,例如:

    public int getWidth() {
        return game.getWidth();
    }

    public int getHeight() {
        return game.getHeight();
    }

    public Game getGame() {
        return game;
    }
它将被重新格式化为:

 public int getWidth() { return game.getWidth();}

    public int getHeight() { return game.getHeight();}

    public Game getGame() { return game;}
在编辑器>>代码样式>>Java>>下的设置中,重新格式化时保留,
我没有选中“一行中的简单方法”框,但这种情况仍然存在。我怎样才能解决这个问题呢?

我只是说,这并没有那么糟糕,因为你可以点击这个方法,它会扩展它

但您可以单击文件|设置|编辑器|常规|代码折叠,然后默认情况下单击折叠。然后取消选中Java部分下的单行方法