Unable to set spacing between “1” in Android Studio (more?)

Not sure if this is due to a recent update, but I suddenly can't get a single line spacing in the Android Studio editor. If I try to change it to 1, it will let me set it, but when I click "Apply", it returns to 1.5. Tried this with different fonts, but the same thing. Am I missing something?

enter image description here

+7
android editor android-studio
source share
2 answers

I can set the interval to 1, do you have this problem ???

I can set the interval to 1, do you have this problem? Please try again and tell me the result.

0
source share

I solved the problem this way:

  • Open the settings in Android Studio and go to the editor> Color and Fonts> Font. Now resize the font or font if you want, and click the "Save As ..." button and save the new outline with a different name (In my case: Darcula E).

  • If you use Windows open File Explorer and go to the Android studio data folder and open the configuration and then the colors folder. In my case: C:\Users\MyUserName\.AndroidStudio2.3\config\colors

  • Select and open the created diagram (in my case: Darcula E.icls ) using Notepad. It looks like this:

 `<scheme name="Darcula E" version="142" parent_scheme="Darcula"> <metaInfo> <property name="created">2017-10-05T19:30:40</property> <property name="ide">AndroidStudio</property> <property name="ideVersion">2.3.3.0</property> <property name="modified">2017-10-05T19:30:50</property> <property name="originalScheme">Darcula</property> </metaInfo> <option name="LINE_SPACING" value="1.5" /> <option name="EDITOR_FONT_SIZE" value="30" /> <option name="CONSOLE_FONT_NAME" value="Monospaced" /> <option name="CONSOLE_LINE_SPACING" value="1.0" /> <option name="EDITOR_FONT_NAME" value="Source Code Pro" /> </scheme>` 

Just change the value of LINE_SPACING to "1.0".

  • Now close and open Android Studio again. Done!
0
source share

All Articles