Sublime Forum

BUG: user/Base File.sublime-settings not keeping comments

#1

user/Base File.sublime-settings is not keeping comments or spacing nor the structure. As someone who’s learning from sublime I want to add comments to remind me what the group of params do, but I can’t do that:

Steps to reproduce:

  • Command + , to open the file.
  • Add a comment anywhere and ( // comment )
  • Save the file.
  • Close the file.
  • If you open it via Command + , the file still has the comment and the structure.
  • Close the file.
  • Press “Command + +” to modify font-size.
  • Open file, and you’ll see everything without comments and resorted…
0 Likes

#2

Some actions like changing the font size or the color scheme via the menus, require an automatic modification of the settings file. This removes the comments and sorts the properties.

0 Likes

#3

I understand that fact. But I also understand this shouldn’t happen on a config file, there should be a parser to do this in a more smart way don’t you agree?

0 Likes

#4

You are absolutely right. Specially for new user would it be helpful. For my part, i got used to it and actually like that the properties are sorted.

0 Likes

#5

I find this somewhat discerning and thought it was a bug. Just saying.

0 Likes