ubuntu gedit主题更改

ubuntu16.04 gedit 编辑器又有首选项如何设置主题

ubuntu gedit主题更改_第1张图片

这里下载主题

将主题XML复制到 /usr/share/gtksourceview-3.0/styles 文件夹内;
使用gsettings 命令设置喜欢的配色方案,使用方式如下:(实测不带.xml后缀哦)

gsettings set org.gnome.gedit.preferences.editor scheme darkmacs

其中 darkmacs 是xml 文件名,可以换成你喜欢的。可以使用gsettings help 查看帮助。

使用这个命令也可以设置 gedit (永久)显示行号:

gsettings set org.gnome.gedit.preferences.editor display-line-numbers true

使用这个命令也可以设置 gedit 显示当前行高亮:

gsettings set org.gnome.gedit.preferences.editor highlight-current-line true

中文支持:

gsettings set org.gnome.gedit.preferences.encodings candidate-encodings "['GB18030', 'UTF-8', 'CURRENT', 'ISO-8859-15', 'UTF-16']"

设置之前默认的主题

ubuntu gedit主题更改_第2张图片

浓浓苹果味的主题ubuntu gedit主题更改_第3张图片

你可能感兴趣的:(ubuntu,linux,运维)