Shuvo3664
Shuvo3664

Reputation: 981

How to make word wrap in android studio by default

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

Upvotes: 56

Views: 38458

Answers (9)

rehman_00001
rehman_00001

Reputation: 1600

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 🍻

Upvotes: 8

Gülsen Keskin
Gülsen Keskin

Reputation: 810

File>Settings>Editor>General enter image description here

Upvotes: 10

Deep
Deep

Reputation: 338

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

Upvotes: 0

Dr_Ray
Dr_Ray

Reputation: 61

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

Upvotes: 5

Raw Hasan
Raw Hasan

Reputation: 1396

Android Studio Arctic Fox Solution

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

Settings in Android Studio Arctic Fox

Upvotes: 3

Rizwanullah Md
Rizwanullah Md

Reputation: 41

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 ...

Upvotes: 4

android
android

Reputation: 3090

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

Upvotes: 34

Ivan Yoed
Ivan Yoed

Reputation: 4415

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

Upvotes: 8

Mussa Charles
Mussa Charles

Reputation: 4432

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

Upvotes: 76

Related Questions