How to reset gedit preferences?

gedit lately suddenly started to open new files in new windows and it is really frustrating to me. I searched graphical preferences, preferences listed by How to change gedit preferences from terminal? and I also tried to uninstall gedit, remove all gedit files/folders in $HOME and reinstall gedit back, but nothing of that didn't help.


Solution 1:

Gedit settings are saved in GSettings or DConf, so you can reset them with the following command:

dconf reset -f /org/gnome/gedit/