轉:MATLAB編輯器風格定製
因為經常用到MATLAB,之前也是想把MATLAB編輯器弄得好看一點,發現從preferences修改確實是有點麻煩,而且經常自己都不知道修改的是啥,今天搜到了一些有用的模板可以直接用的,小夥伴們可以借鑑一下。
在mathworks網站上找得到一篇文章:MATLAB Schemer 裡面提供了幾組方案確實是好看
實現方法:
1, 在matlab命令列中執行prefdir, 獲取matlab.prf檔案所在路徑
2, 開啟matlab.prf所在路徑, 找到matlab.prf檔案, 作備份
3, 在新的matlab.prf中將新的方案直接貼上進來,可以直接用記事本開啟,清空之後貼進來新的,重啟就好了
所有的prf都在
具體方案:
Cobalt
Based on the GTK stylesheet, “Cobalt”, by Will Farrington.
Darkmate
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,感覺整個編輯器都煥然一新啦