I just downloaded the ADT from google which included the Juno version of Eclipse.
After making a project however, the default text editor has this horrible dashed / dotted line between every horizontal line. It's a pain to look at, but Eclipse's appearance preferences always leaves me completely lost.
Any ideas on how to turn off?
Screenshot :
or link
http://imgur.com/BcOe9tV
I had the same dotted lines after choosing a darker color scheme in Eclipse and this fixed it:
Window/Preferences/General/Appearance/Jeeeyul's Themes/Edit/Underline Style: None
You probably enabled "Show Whitespace Characters" by mistake.
Is this what you're asking to turn it off?
If so, just click at this button:
Install Jeeeyul theme
Goto General > Appearance > Jeeeyul theme
Select Editor tab and set Underline Style to None, as shown in the screenshot:
These dots represent white-spaces between words/lines.
You can turn them on/off by going to Preference > General > Editors > Text Editors > Show Whitespace Characters
I found this option in Eclipse Luna. Juno should also have similar option.
Edit:
Alternatively, as #Leandro suggested, there is a button in the toolbar to turn it on/off
Related
How do I modify the default settings to show the line number in AS 2.2?
Android Studio > Editor > General > Appearance: There will be a "show line number" checkbox for Mac
There's an easiest way...
Right clic in the left side bar of the Workspace area and choose Show Line Numbers (see pic example).
Enjoy coding!
Recently I set my line length limit to 100 or 120 and I also enabled an option that will wrap the code that exceeded those limits to the next line, whenever I clicked Code Format.
Now I want to disable that wrap and do it manually, but I don't know where that setting was.
In Android studio go to
Preferences > Editor > Code Style > Java > Wrapping and Braces > Keep
when reformatting and uncheck the checkbox Line Breaks
Go to File->Settings->Editor->Code Style
There you'll find the two options "Right margin (columns)" and "Wrap when typing reaches right margin".
I don't know all features of Android Studio, I have tried to search,but found nothing.
I wonder if it is possible to make Android Studio autoinsert attributes required for right-to-left support.
For example I have typed following line
android:layout_marginLeft="10dp"
Is it possible to make Android Studio insert marginStart attribute automatically ?
android:layout_marginLeft="10dp"
android:layout_marginStart="10dp"
And vice-versa(for padding too).
This would save some time.
Maybe someone knows how to get such behavior, I will be grateful for any help. Thx.
Apparently, you can't do that. You have to write them yourself.
The difference between layout_marginLeft and layout_marginStart for example is that layout_marginLeft is executed for left to right languages like English, while `layout_marginStart' is only executed for right to left languages like Arabic.
So if you are going to add string translations to your app including arabic or any other right to left languages, you will need to write marginStart or marginEnd attributes... So anyway, if you didn't write layout_marginStart for example and your app doesn't support Arabic language or any other right to left languages, no error will occur to the user; it is just a warning that Android Studio tells you.
Definitely the same concept is applied to padding attributes. Hope that helps you.
Edit:
If you don't like to see Android Studio warning you these warnings, you can simply disable that by clicking on the yellow light bulb beside the yellow highlighted warning and selecting Edit 'Using left/right instead of start/end attributes' inspection settings, then uncheck it from the list.
But if you don't want to change the inspection settings, you can just add the following to your View that you don't want to use start/end attributes in it:
tools:ignore="RtlHardcoded"
and add that to your parent layout that contains that View:
xmlns:tools="http://schemas.android.com/tools"
The same question was marked as "duplicate" even though it obviously was not a duplicate. At least it should be obvious to anyone who is familiar with configuring an editor. When you want to change the background color, you aren't talking about changing the whole theme, you are talking about changing the background color.
Is there a way to change only the background color in Android Studio editor?
Sorry, but I believe you all have this one wrong. To change the background of the editor goto File, Settings, Editor, Colors & Fonts and select General. You'll see an item called "Default text". On the right of the window you will see a checkbox for background. Click in the color window and choose whichever color you prefer. Now the entire editor window will show that color as the background.
go to : Android Studio > Preferences > Editor > Colors & Fonts > General
In Android Studio 3.2.1 Windows (latest version as of today - Nov 2, 2018), go to
File > Settings > Editor > Color scheme > General > Text-Default text. One can change foreground and background colors using the panel on the right.
One can change the bottom logcat panel colors similarly - go to
File > Settings > Editor > Color Scheme > Console Colors > Console (or log Console)
Yes it is. Open Settings (Preferences on a Mac) and under IDE Settings expand Editor, Colors & Fonts and select General. You'll see Background in a menu on the left side. Click on the checkbox next to it if it's not ticked already and then double click on the square filled with current background color to get the color picker.
AndroidStudio 3.3.2
1st step:
2nd step:
Android Studio 4.1.2 on Mac
File -> Preferences -> Editor -> Color Scheme -> General -> Text -> Default Text
None of the Answers above have correct info for Windows Android Studio 3.1.2.
On Mac, apparently this works: go to Android Studio > Preferences > Editor > Colors & Fonts > General, but we Windows folk don't have an Android Studio tab or option and Preferences isn't an option anywhere.
We have File > Settings > Editor. Here's the screen with the only conceivable next links to click highlighted:
But here's what I see when I click General. I can select this background:
But I can't live with that.
In Windows 7, AS 3.1.2 the menu sequence--File > Settings > Editor > Color scheme > General > Text > Default text--takes you to a screen where you can set the foreground and background colors via a "color circle" or by typing in your favorite RRGGBB code(s).
I was pleasantly surprised by how an error in an xml file showed up (and the current line):
When editing XML layout files, Eclipse has a feature called 'wrap in container' (Reformat -> Android -> ...) that lets you select one or several Views and wrap a layout of your choice around it.
Is there something similar in Android Studio?
It's currently being implemented:
Issue 69000: Add the "Wrap In" visual refactoring - Android Issue Tracker
Tor Norbye, Android Issue Tracker Mantainer:
We should implement the "Wrap In" visual refactoring.
Just came across this, and to complete Simas' answer:
using AS1.2, this is easy to achieve...
to set up a Live Template, simply select the View in your layout XML
that you wanna surround. Hit Alt+Shift+Z (surround-with)... a little
popup appears. Click Configure Live Templates.... Or use File->Settings->Editor->Live Templates as described above.
Select the html/xml section and hit the little +. Give it a name and description, then fill in template text:
<LinearLayout
android:orientation="$ORIENTATION$"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
>
$SELECTION$
</LinearLayout>
Click Edit variables, set Expression:complete(), Default value:vertical... hit OK. Then, find the Define' button for applicable context... and select XML.
You're all set now. To use the template, select the View that you wanna surround in the XML, hit Alt+Shift+Z (surround-with)... a little popup appears. Select the template you just defined... Done!
You can use Live Templates for that. Here's a nice article about them.
Edit:
New templates can be added through File->Settings->Editor->Live Templates.
To find the hotkey for your keymap go to File->Settings and write "Live template". For me it's CTRL + J .