When I write something on the android studio, the line goes on over the right screen. How do I turn on word soft wrap in android studio?

enter image description here

0

9 Answers

If you are on mac and want to soft wrap just the current active Editor, here is how to do it: - On the menu bar View -> Active Editor -> Soft-Wrap

3

Please goto "File->Settings->Editor->General" tab and check "Use soft wraps in editor". it will solve your problem.

Updates: As @ThePartyTurtle mentioned on the comment some versions of Android Studio specifically from v3.5.3 This option is available via

Android Studio->Preferences...->Editor->General

enter image description here

2

You go to Android Studio > Preferences > Editor > General > Soft Wraps

then you have to indicate what type of documents you want the soft wrap to be applied on. Be sure to separate each type with a semicolon.

example: *.md; *.txt; *.rst; *.adoc; *.dart; *.plist;

Image that complements the explanation of the menus

1

If u want to use soft wrap by default go through the following steps

step-1 : Click on view ( in Navigation bar )
step-2 : Choose Active Editor
step-3 : Click on Soft wrap

that's it ...

1

Android Studio Arctic Fox Solution

From the menu:
File > Settings > General
Tick the Soft-wrap these files checkbox.

Settings in Android Studio Arctic Fox

  1. File > Settings > General
  2. Tick the "Soft-wrap these files:" checkbox, and write *.*
  3. Apply > OK
2

If you are on mac: Android Studio -> Preferences -> Editor -> General -> Soft-wrap these files

If you are on Windows : Settings > Editor > General > Soft-wrap these files

To enable Soft-wrap, write the following code in the box in front of the checkbox

  1. *.* to wrap all the files in the editor
  2. *.<extension_of_file> to wrap files with specific extension an separated by semicolon
1

File>Settings>Editor>General enter image description here

Here's my 2 cents:

A quick way to toggle word-wraps:

Ctrl + Shit + A : (opens a search window with "Actions" tab enabled.)

Type Soft wrap

Press enter on the first search-result: View | Active Editor Soft-wrap

enter image description here

Cheers 🍻

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy