Fixed
Status Update
Comments
uc...@google.com <uc...@google.com>
rp...@google.com <rp...@google.com> #2
I can reproduce this with the current master branch.
ra...@google.com <ra...@google.com> #3
Make sure you are changing the project-level settings (see attached screenshot). Those are persisted to .idea/codeStyleSettings.xml.
The IDE-level settings are stored in ~/.AndroidStudio3.0/config/codestyles/Default.xml, but note that Android Studio will reset these to its hard-coded style, which includes a right margin of 100. We should probably make it more clear in the UI that some changes to the default scheme will not persist.
The IDE-level settings are stored in ~/.AndroidStudio3.0/config/codestyles/Default.xml, but note that Android Studio will reset these to its hard-coded style, which includes a right margin of 100. We should probably make it more clear in the UI that some changes to the default scheme will not persist.
vk...@gmail.com <vk...@gmail.com> #4
affected also codestyle (xml settings for me)
vk...@gmail.com <vk...@gmail.com> #5
Okay - i maked duplicate of IDE default settings and change me - all become good and stop resettings, yet - make sens to do it automaticaly when user change some default settings
[Deleted User] <[Deleted User]> #6
So, is this OK this way, or it's a bug?
vk...@gmail.com <vk...@gmail.com> #7
U have to copy settings and change em after. default one aint editable, yet i think ide should prevent edit either save as copy instead of just apply once
rp...@google.com <rp...@google.com>
vs...@google.com <vs...@google.com> #8
Note: This is an AS only issue due to customizations done in Android Studio re: code style settings.
mm...@google.com <mm...@google.com>
mm...@google.com <mm...@google.com>
mm...@google.com <mm...@google.com> #9
This bug has been fixed. The fix should be available in Canary 6 for the 3.5 release.
Change-Id: I9b8cb358a760b33c26d61949b44f982b31b5017f
Change-Id: I9b8cb358a760b33c26d61949b44f982b31b5017f
be...@google.com <be...@google.com> #10
It seems this caused a fresh installation of 3.5 to not use the default settings (XML editor show the yellow bar suggesting to turn on Android code style). AFAICT this is because com.intellij.psi.codeStyle.CodeStyleSettingsManager#getCurrentSettings is not returning the instance of CodeStyleSettings modified in initializeDefault, instead returning early because USE_PER_PROJECT settings is true. Maybe we need to also modify the default project's per-project settings, not just the IDE settings?
mm...@google.com <mm...@google.com> #11
I can reproduce the yellow bar when switching to per project settings by default, but I do not think it is related to this bug fix. I will open another bug for this issue.
Description
AI-171.4402976, JRE 1.8.0_152-release-915-b01x64 JetBrains s.r.o, OS Windows 10(amd64) v10.0 , screens 1366x768
IMPORTANT: Please read
I have saved RIGHT_MARGIN option to 160 in .idea/codeStyleSettings.xml file but editor does not use this value and I have changed this value from settings from 100 to 160 but it is still using the old value 100 for right margin, and value 160 is also not saved to idea./codeStyleSettings.xml file.