Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reformat Code not Working for 2022.2.2 #417

Open
UltimateFighter opened this issue Oct 27, 2022 · 0 comments
Open

Reformat Code not Working for 2022.2.2 #417

UltimateFighter opened this issue Oct 27, 2022 · 0 comments

Comments

@UltimateFighter
Copy link

UltimateFighter commented Oct 27, 2022

Describe the bug

Code Style Value: "Hard wrap at: 120"

If i have this code and i press STRG+S the code looks as follows and the code is formatted incorrectly (Line 9):

 6  public class Test {
 7      public void foo() {
 8          final boolean aLongVariableToDemonstrateInvalidFormatting = false;
 9          final boolean foobar = VeryLongMethodeToDemonstrateInvlaidFormatting(aLongVariableToDemonstrateInvalidFormatting);
10      }
11  
12      private boolean aVeryLongMethodeToDemonstrateInvlaidFormatting(final boolean value) {
13          return value;
14      }
15 }

After i press STRG+ALT+L (Reformat Code) the code is formatted correctly (Line 9 u. 10):

 6  public class Test {
 7      public void foo() {
 8          final boolean aLongVariableToDemonstrateInvalidFormatting = false;
 9          final boolean foobar =
10                  aVeryLongMethodToDemonstrateInvalidFormatting(aLongVariableToDemonstrateInvalidFormatting);
11      }
12  
13      private boolean aVeryLongMethodToDemonstrateInvalidFormatting(final boolean value) {
14          return value;
15      }
16  }

What triggered the plugin
Auto Save (STRG+S)

Versions
Intellij: IntelliJ IDEA 2022.2.2 (Build #IU-222.4167.29, built on September 13, 2022)
Plugin: 2.3.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant