Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to show White Space character in android studio as Eclipse tool

I know where to show White Space character (Image 1) in Eclipse.

enter image description here

Image 2 indicated what I want to show same as in Android Studio tool. enter image description here

I don't know where to set White Space character in Android Studio.

Please help me.

Thanks,

like image 822
Huy Tower Avatar asked Aug 26 '14 07:08

Huy Tower


People also ask

How do I show whitespace characters?

In Visual Studio for Windows, to display whitespace characters (tabs, spaces, etc) you simply press Ctrl + R, Ctrl + W.

How do you represent whitespace in a string?

However, " " , "\t" and "\n" are all strings containing a single character which is characterized as whitespace. If you just mean a space, use a space.

How white space is represented in Java?

A character is called a whitespace character in Java if and only if Character. isWhitespace(char) method returns true. The most commonly used whitespace characters are \n, \t, \r and space. The regular-expression pattern for whitespace characters is \s .

How to set white space character in Android Studio?

I don't know where to set White Space character in Android Studio. Please help me. After Android Studio 1.2: File -> Settings -> Editor -> General ->in Appearance ->toggle Show whitespaces on Or just search show whitespaces in searchbox in Settings, you can also find the way to show white space.

How to remove white spaces for textview in Android?

This example demonstrates How to remove white spaces for textview in Android. Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project. Step 2 − Add the following code to res/layout/activity_main.xml.

How do I show whitespace in Eclipse?

[UPDATE] This has been fixed in Eclipse 3.7: Go to Window > Preferences > General > Editors > Text Editors Click on the link "whitespace characters" to fine tune what should be shown. Show activity on this post. Click on the CheckBox "Show whitespace characters". Thats all.!!! Show activity on this post.

How do I show white space on the toolbar?

I would prefer to keep the "Show Whitespace" button on the toolbar, so that in one click you can toggle it. Go to Window -> Perspective -> Customize Perspective and enable to show the button on toolbar. Show activity on this post. I use Checkstlye plugin for such a purpose.


3 Answers

Before Android Studio 1.2:

File->Settings->in IDE-Settings, Editor->Appearance->toggle Show whitespaces on

After Android Studio 1.2: File->Settings->Editor->General->in Appearance->toggle Show whitespaces on

Or just search show whitespaces in searchbox in Settings, you can also find the way to show white space.

like image 107
PageNotFound Avatar answered Oct 01 '22 17:10

PageNotFound


Android Studio 1.2

File > Settings > Editor > General > Appearance > toggle "Show Whitespace"

like image 21
codingjeremy Avatar answered Oct 01 '22 15:10

codingjeremy


Android Studio show whitespace

v4.0

Preferences | Editor | General | Appearance

jetbrains://AndroidStudio/settings?name=Editor--General--Appearance

enter image description here

like image 21
xgqfrms Avatar answered Oct 01 '22 17:10

xgqfrms