I have this strange line wrap on Android Studio and I want to disable because it freaks me out...
-
almost all the helpers in android studio freak me out.. :) thanks.. have removed all.. – Siddharth May 13 '18 at 06:21
11 Answers
It's also available under the context menu

- 3,581
- 29
- 28
-
This helped me because softwarpp was enabled by system itself. So I dont have option to disable in settings. However this helped to solve the problem – Noundla Sandeep Feb 04 '17 at 08:06
-
Nice. This method now also allows you to enable/disable line wrap for just a single file which is nice if you want to wrap a specific text file or something and keep the others as is. – Slartibartfast Mar 27 '18 at 05:42
In Android Studio 0.4.0 following should help:
Configure > Settings > Editor > Uncheck 'Use soft wraps in editor'
On Mac (Android Studio 3.0):
Preferences -> Editor -> General -> Uncheck 'Use soft wraps in editor'

- 20,955
- 5
- 61
- 84
I wanted to entirely disable wrapping and I found a workaround.
It doesn't seem to work for specific file extensions (Groovy, HTML, Java, etc.) but does with the general value. I set it with a significantly great number and am having no more wrapping.
I think they should give a master option for it!

- 604
- 1
- 11
- 25
If you're wondering how to do this for Flutter/Dart, here's how:
- File -> Settings -> Code Style -> Dart
- Change the Line length field to something bigger than the default (I'm using 300)
This should work for any programming language.

- 11,488
- 3
- 53
- 61
In Android Studio 2.3.3+, to disable line wrapping, you need to go to:
- Preferences
- Code Styles
- [Select a Language, e.g. Java]
- Set "wrap on typing" to NO.
- Code Styles

- 353
- 5
- 8
In Android Studio 1.0.2, there is no menu named Configure. Settings is now under File menu. Everything are as accepted answer.

- 302
- 6
- 20
I found helpful that in the current version (Android Studio 3.2) you can set the soft wrap indicators to show only in the current line in adition to using soft wraps in editor.
Check the Show soft wrap indicators for current line only in:
Editor -> General -> Soft Wraps

- 1,357
- 15
- 26
There is also the auto-line breaking issue, where AS will automatically add hard line returns in long lines. I found the setting for this in Preferences > Editor > Code Style > Hard wrap at [X] and []wrap on typing.

- 527
- 1
- 5
- 17