Formatting / Code line break in Android Studio

1

When I do the automatic reformatting Ctrl + L the code is indented but the lines do not break, as in Eclipse and Netbeans, so I have to stay dragging the window constantly to see the end of a larger line, as in the example:

NtpTimeProvider ntpTimeProvider = new NtpTimeProvider(InetAddressFactory.newFromHostString("192.168.0.1"), nodeMainExecutor.getScheduledExecutorService());

Would anyone know where I can set this so that the lines break and the code is the size of the window?

    
asked by anonymous 29.04.2018 / 04:04

1 answer

4

You need to go to Files > Settings > Editor > Code Style > Java > wrapping and Braces > Mark the option: Ensure right margins is not exceeded

    
29.04.2018 / 04:11