Android Studio disable line wrap

前端 未结 10 971
遇见更好的自我
遇见更好的自我 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:51

    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.

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

    It's also available under the context menu enter image description here

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

    If you're wondering how to do this for Flutter/Dart, here's how:

    1. File -> Settings -> Code Style -> Dart
    2. Change the Line length field to something bigger than the default (I'm using 300)

    This should work for any programming language.

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

    Right click near the line numbers for the soft wrap option to pop up.

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