I know where to show White Space character
(Image 1) in Eclipse.
Image 2 indicated what I want to show same as in Android Studio tool.
I don't know where to set White Space character
in Android Studio.
Please help me.
Thanks,
In Visual Studio for Windows, to display whitespace characters (tabs, spaces, etc) you simply press Ctrl + R, Ctrl + W.
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.
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 .
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.
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.
[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.
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.
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.
Android Studio 1.2
File > Settings > Editor > General > Appearance > toggle "Show Whitespace"
v4.0
Preferences | Editor | General | Appearance
jetbrains://AndroidStudio/settings?name=Editor--General--Appearance
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With