Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio 3.0 - Settings are not saved

I've increased the "Right margin (columns)" in File->Settings->Editor->Code Style from default 100 to 140. Unfortunately the margin is reset after each time I restart Android Studio. I also tried to export and import my settings but this does not prevent the right margin to be reset.

Hopefully someone can tell me how to save the margin.

like image 927
RyuZz Avatar asked Mar 15 '18 09:03

RyuZz


People also ask

How do I copy settings in Android Studio?

You can go file > Export settings then you get to choose exactly the settings to export and you get a single settings. jar file. This looks promising.

How do I export my Android settings?

If you want to back up your configuration and restore it to a new phone, you can do it with the following option. Nine - Settings > General > Import / Export settings > Export <== it will backup your old phone's Nine settings to your local storage, then you can copy it to SD card and bring it to a new phone.


2 Answers

Just remove the next row from gradle.properties

kotlin.code.style=official

Dont forget to re-apply codestyle settings in IDE settings or in /.idea/codeStyles/

like image 129
Link182 Avatar answered Oct 19 '22 00:10

Link182


If you are selecting the default option in Code Style then it is going to reset again to 100 value

Try to select Project from Scheme and apply the setting it is working

if You are setting it default then it is reset to it default value

File->Settings->Editor->Code Style

like image 39
Amjad Khan Avatar answered Oct 19 '22 02:10

Amjad Khan