Android Studio Editor Font Sizing - android

Is there any way to make the editor text larger in Android Studio?
I go to Settings>Editor>Colors&Fonts>Font where I find "Size:12". However, I'm unable to change the value for the size.

They didn't make this very obvious, did they?
All you have to do is click the "Save As" button to create a new profile. You can't change the font because you can't overwrite the default profiles.

If creating a custom setting doesn't help:
Click on File > Settings > Editor and check the field:
Change font-size with CTRL + Mouse Wheel.
Worked for me.

Extending the answer above, for Windows:
1. Go to File > Settings ...
2. Modify the settings shown below

If you are using Android Studio (version 0.5.2) then this applies:
Click on [File][Settings], and under the "IDE Settings" area (left side Pane), choose "Appearance".
On the right side (the 'Appearance Settings') check the CheckBox called "Override default fonts by (not recommended)" and then the "Size" choice will un-grey and you can choose a new size using either the PullDown or by typing a number. Double check that the number is reasonable (not too large).
Click [Apply] to see the result of your choice and ensure that it is readable before choosing [OK] and dismissing the Settings Panel.
Cautions: Since Android Studio is still in Beta (a new Program) choosing too small or too large a Font, or choosing one that the Editor does not agree with, may make Text either unreadable or worse (cause a crash).
This is likely why the Setting says "not recommended". You do not want to have to edit the Program's settings with a Hex Editor if you make a mess by setting the Fonts to 144 Points instead of just 14 -- the Menu line would be huge.
A small increase in the Font size should be OK but be careful not to make Text so large that it can not fit in the area that was reserved for it (not just in the Editor but also the "Main Menu" and the "Info Bar" (at the bottom).
Note: The 'Edit Window' Text is smaller than all the other Text by one size but all Text is controlled by the one Setting. Making the 'Edit Window' Text too big is very likely to cause problems elsewhere since all the other Text is larger than what is shown in the 'Edit Window'.

Keymap
There is nothing wrong with the other answers but this one shows how to map the font sizing to a keyboard shortcut. One can then use Cmd/= and Cmd/- (or Ctrl/=, Ctrl-) to manage the font sizing. You can choose any key combination you like but note the conflicts message that appears when you select a keyboard shortcut (just to be sure that it makes sense in your use-case).
Go to Preferences (Settings in Windows) Menu and select the Keymap section title on the left. On the right sections' search box, type in font. You will find several entries including Increase Font Size and Decrease Font Size. You can double click each of these to add a keyboard shortcut.
For mine, I chose Cmd/= and Cmd/- as my shortcuts respectively. You will be prompted with an option to Leave or Remove conflicts. In my case, I chose to leave the conflicts in place as they are never likely to be loaded at the same time.
Double-click to add keymap
Enter key combination and note any conflicts
Choose how to handle conflicts
NB: If you choose Leave, conflicts remain ~ but may not matter if they
are not loaded at the same time. If you choose Remove then the original
keyboard shortcuts are removed (use with care).
Nota Bene
Another useful keymap on font sizing is Reset Font Size, which puts things back to the default setting. This option shows up when you search the Keymap in preferences for font. In my case, I chose Cmd/Shift/0 so that I would avoid the commonly used Cmd\0 shortcut that opens the Messages window.
Reset Font Size
Valid as of Android Studio 1.5.1
FYI
A different method to change the font sizes is to open the Actions
menu and search for font. When found then double click on the
increase/decrease font size choices. On the Mac, I access actions
menu using the Cmd/Shift/A shortcut or under Help menu, choose
Find Actions.

A nice feature is:
File -> Settings -> Editor -> General
On top there is a section "Mouse"
You can click on the "Change font size (ZOOM) with CTRL+Mouse wheel"
So you can change the size on demand.

In MacBook Android Studio ->
Select Preferences... ->
Click on Save As.. ->Give any name -> OK -> then select Scheme -> and you given name every option Editable

Go to Settings > Editor, expand the Editor tree, go to Color & Fonts expand that tree and find Font, at the top select the theme you want to change fonts for and then change the font under Editor Font

It seems they have fixed it now. I'm using Android Studio 3.0, and I'm able to modify default scheme.
Just open Settings > Editor > Colors&Fonts > Font, enter the desired font size in field "Size" and click "Apply" button, that's it.

Goto Files | Settings | Appearance & Behavior --> appearance --> scroll down mouse you will find presentation mode change the font size .

I have the issue but it was due to changed font family. I had to specify Font size for specific Font Family I was currently using. Got to Settings > Font > Click Current Editor font...
It will open Color Scheme > Color Scheme Font. Specify Font size here

Related

Android Studio Change Occurrence Color

How can I change the occurrence/write occurrence color in Android Studio? Is this even possible? In Eclipse it was found (on a Mac) under Preferences->General->Editors->Text Editors->Annotations
Does Android Studio even provide this option? It's a number of small annoyances like this (as well as the massive performance issues it seems to be having thus far) that prevent me from moving to Android Studio.
Currently running Android Studio 1.2 Beta if that helps.
Go to menu
Preferences > Editor > Color&Fonts > General
Find "Identifier under caret" and change Foregound or/and Background colors with a color you wish. When you click a variable, it will be highlighted with the color you chose.
To mark selected occurrences in Android Studio you have to additionally use a shortcut
Ctrl+Alt+Shift+J
to mark them. Then all occurrences will be highlighted with darker better to see color. That option is also available in menu
Edit -> Find -> Select All Occurrences
Still if you want to change that color then you can find it in
File -> Settings -> Editor -> Colors & Fonts -> General -> Selection background
If you are using default scheme then you will have to save a new scheme to change selection background color.
Sadly I didn't find any option to change the color of selected occurrence after selecting class/variable (one click, like in Eclipse). I guess that there is no option for that yet.

Tab key not working in Android Studio

I installed the Android Studio version 0.8.0
and my TAB key in my keyboard does not insert an actual tab in the editor window of Android studio.
But my TAB key in general works fine.
Someone kindly help as i am not able to figure this out.
Thanks.
File > Settings > Project Settings > Code Style - Java
Use tab character
If this check box is selected, tab characters are
used: On pressing the Tab key For indentation For code reformatting
When the check box is cleared, IntelliJ IDEA uses spaces instead of
tabs.
Smart tabs
If this check box is selected, IntelliJ IDEA inserts
tabs for indentation and reformatting, but fine alignment to a
necessary column is done only via spaces without replacing them with
tabs. This is done in order to preserve visual representation of the
source code, when the tab size is changed.
If this check box is cleared, only tabs are used. This means that a group of spaces that
fits the specified tab size is automatically replaced with a tab,
which may result in breaking fine alignment. The Smart Tabs check box
is available if the Use Tab Character check box is selected.
Tab size
In this text box, specify the number of spaces included in a
tab.
You may also need to go to File > Settings > Project Settings > Code Style. XML if the Android xml is giving you the same issue.
http://www.jetbrains.com/idea/webhelp/code-style-java.html
File > Settings > Project Settings > Code Style
And make sure that
Use tab is checked under Code Style
Use tab under Code Style - Java is checked also
Preferably you check "detect and use file indentations for edit" to avoid noise.

How do I get rid of the images left of the code in Android Studio

Basically, how can I hide these icons that appear automatically when I get the ID of a drawable in Java code? Or at least limit their number to 1 instead of 5?
I've looked everywhere in the settings and can't seem to find anything. And they are pretty annoying, as they take away quite a bit of coding space.
You can disable the icons by going to preferences -> Editor -> Appearance. There you will find a checkbox saying Show icons preview in gutter for small icons. (Java)
You can also disable css color previews there if you want. For the change to take effect I had to restart Android Studio.
Go to preferences -> Editor-> Appearance. Uncheck the box that says
"Show CSS color preview icon in gutter"

Eclipse Android shortcut for content assist in XML

While editing an XML layout file, I would like Eclipse to display content proposals.
E.g. when I type in "marg" and press Cmd+Space, it should offer me a dropdown list of
layout_marginLeft, layout_marginRight etc.
How can I set this keybinding?
(On Mac it is by default Ctrl+Space, but I want it to be Cmd+Space)
Command+Space usually brings up Spotlight. You'll have to turn this off first.
Go to System Preferences / Spotlight.
Disable or remap Command+Space.
Then in Eclipse:
Go to Eclipse / Preferences.
Select General / Keys.
Select Content Assist in the list.
Delete the ^Space in the binding textbox.
Type in Command+Space.
If you go to
Eclipse > Preferences > Keys
find the option 'Content Assist' and changing the binding to cmd + space.

Does anybody know how to change the font for "Run" Console window?

It doesn't go with the global font setting in Android Studio.
yes you can change
Go to the File -> settings in that Editor-> Colors & Fonts in that go to the console font and in that you need to create new scheme name and change it.
you cannot modify the default one.
what are fonts are available you need to choose that and in the selected fonts you need to give the top priority by moving it by arrows at right side.

Categories

Resources