Android Studio 3.0 - Settings are not saved

十年热恋 提交于 2019-12-10 12:43:29

问题


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.


回答1:


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




回答2:


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/



来源:https://stackoverflow.com/questions/49295679/android-studio-3-0-settings-are-not-saved

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!