Any tips for tracking settings.json in version control? #3721
-
I'm trying to track Micro's Edited to add: I think I probably don't understand how the settings file is supposed to work. Most of the settings in there appear to be the default values. I guess they were added by Micro for my convenience? It's not very convenient when Git is involved. 😁 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Maybe you are using a version of micro before #3009? ( In versions after #3009 you can mostly avoid micro editing settings.json by not using plugins that automatically change the settings and avoiding the If you want to be absolutely sure micro won't modify settings automatically you can make the file read-only ( |
Beta Was this translation helpful? Give feedback.
Maybe you are using a version of micro before #3009? (
as of writing the fix hasn't made it to a tagged version yet so you'll need to use the nightly release or build from sourcenvm, it's in 2.0.14)In versions after #3009 you can mostly avoid micro editing settings.json by not using plugins that automatically change the settings and avoiding the
set
command (usesetlocal
instead for temporary settings). Same goes for bindings.json – avoid plugins that set their bindings programmatically and favor editing bindings.json manually instead of usingbind
command. Besides that my strategy has been to frequently commit (or discard) the changes to keep it up to date.If you want to be absolutely …