Everytime I open a file in gedit, I have to change again the tab with from 8 to 4, as I prefer it.
Is there any configuration file where I can make 4 the default tab width?
In gedit
's menu, go to Edit -> Preferences. When the "gedit Preferences" window pops up, click on the "Editor" tab, and you'll be able to change the Tab Width setting.
For GNOME 3, go here
Go to Edit > Preferences
in gedit. Then, switch to the Editor
tab:
Edit those preferences to your hearts content.
(Please excuse the ugly GTK theme, the latest Oneiric updates broke my XFCE themes)
Open Terminal and type:
gsettings set org.gnome.gedit.preferences.editor tabs-size 4
gsettings set org.gnome.gedit.preferences.editor insert-spaces true
It tells gedit
to use spaces instead of tabs.
Dec 1, 2019 at 20:35
insert-spaces
with gsettings list-recursively org.gnome.gedit.preferences.editor | grep space
.
Dec 1, 2019 at 20:48
gsettings org.gnome.gedit.preferences.editor auto-indent true
Dec 1, 2019 at 21:05