Formatting/Breaking Line of Code in Android Studio

Asked

Viewed 808 times

1

When I do automatic reformatting Ctrl+L the code gets indented, but the lines don’t break, as in Eclipse and Netbeans, so I have to drag 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 up so that the lines break and the code is the size of the window?

1 answer

3


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

inserir a descrição da imagem aqui

Browser other questions tagged

You are not signed in. Login or sign up in order to post.