此文借鉴了:matlab编辑器颜色风格设置一文
因为经常用到MATLAB,之前也是想把MATLAB编辑器弄得好看一点,发现从preferences修改确实是有点麻烦,而且经常自己都不知道修改的是啥,今天搜到了一些有用的模板可以直接用的,小伙伴们可以借鉴一下。
在mathworks网站上找得到一篇文章:MATLAB Schemer 里面提供了几组方案确实是好看
实现方法:
1, 在matlab命令行中运行prefdir, 获取matlab.prf文件所在路径
2, 打开matlab.prf所在路径, 找到matlab.prf文件, 作备份
3, 在新的matlab.prf中将新的方案直接粘贴进来,可以直接用记事本打开,清空之后贴进来新的,重启就好了
所有的prf都在
https://github.com/scottclowe/matlab-schemes#monokai
具体方案:
Cobalt
Based on the GTK stylesheet, "Cobalt", by Will Farrington.
Darkmate
Based on the GTK stylesheet, "Darkmate", by Luigi Maselli.
Dark Steel
By @scottclowe, inspired by the Darkmate and Cobalt themes.
Matrix
By @scottclowe, using only colors present in the terminals shown in the movie, The Matrix.
Monokai
By @dkearn. Based on Sublime Text's Monokai theme. Change the font to Consolas to complete the look.
Oblivion
Based on the Gedit theme, "Oblivion", by Paolo Borelli and GtkSourceView.
Solarised Dark
Based on the Solarized (1.0.0beta2) palette, in dark mode, by Ethan Schoonover.
Solarised Light
Based on the Solarized (1.0.0beta2) palette, in light mode, by Ethan Schoonover.
Tango
Based on the colour palette for the Tango Desktop Project.
Vibrant
Based on the GTK stylesheet, "Vibrant", by Lateef Alabi-Oki.
Default
And of course, you can always return to the original MATLAB color scheme provided by MathWorks using the default.prf
color preferences file.
后序
小伙伴们可以选择自己喜欢的方案了^^在这之后我又更改了字体,从preferences里将字体改为了Consolas,感觉整个编辑器都焕然一新啦