Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 97371

Java method signature not splitting on configured line length

$
0
0

Because of reasons I need to deal with some rather long class names that I can't change, and I also need to deal with a strict max line length of 100 characters. So far that went okay-ish, but now I've run into an issue where VS Code does not want to split the method signature:

public class Clients {
  public SoapJmsRequestReply<GetBusinessPartnerDataRequestType, GetBusinessPartnerDataResponseType> getBusinessPartnerDataClient() {
    /* blabla */
  }
}

The 100 limit is reached at the > so I can't shorten the method name to get an acceptable line length. What our linter does accept is:

public class Clients {
  public SoapJmsRequestReply<GetBusinessPartnerDataRequestType, GetBusinessPartnerDataResponseType>
      getBusinessPartnerDataClient() {
    /* blabla */
  }
}

But VS Code's formatter does not want to keep it that way and formats it back to the first example. Is there a configuration somewhere in the stylesheet xml to enable this line break to occur?


Viewing all articles
Browse latest Browse all 97371

Trending Articles