Android Studio disable line wrap

前端 未结 10 970
遇见更好的自我
遇见更好的自我 2021-02-03 19:29

I have this strange line wrap on Android Studio and I want to disable because it freaks me out...

\"enter

相关标签:
10条回答
  • 2021-02-03 19:35

    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

    0 讨论(0)
  • 2021-02-03 19:40

    In Android Studio 3.5.3 you can set the soft wrap to line up with the orginal lines indent AND set an additional indent spaces. Makes it easier for me to read Settings --> Editor --> General

    settings screenshot

    0 讨论(0)
  • 2021-02-03 19:43

    In Android Studio 0.4.0 following should help:

    Configure > Settings > Editor > Uncheck 'Use soft wraps in editor'
    

    Screenshot from Android Studio 0.4.0 Settings screen

    On Mac (Android Studio 3.0):

    Preferences -> Editor -> General -> Uncheck 'Use soft wraps in editor'
    
    0 讨论(0)
  • 2021-02-03 19:45

    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.

    0 讨论(0)
  • 2021-02-03 19:48

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

    0 讨论(0)
  • 2021-02-03 19:51

    I wanted to entirely disable wrapping and I found a workaround.

    enter image description here

    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!

    0 讨论(0)
提交回复
热议问题