1. 程式人生 > >轉:MATLAB編輯器風格定製

轉: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.

Cobalt sample

Darkmate

Darkmate sample

Dark Steel

By @scottclowe, inspired by the Darkmate and Cobalt themes.

Dark Steel sample

Matrix

By @scottclowe, using only colors present in the terminals shown in the movie, The Matrix.

Matrix sample

Monokai

By @dkearn. Based on Sublime Text’s Monokai theme. Change the font to Consolas to complete the look.

Monokai sample

Oblivion

Based on the Gedit theme, “Oblivion”, by Paolo Borelli and GtkSourceView.

Oblivion sample

Solarised Dark

Based on the Solarized (1.0.0beta2) palette, in dark mode, by Ethan Schoonover

.

Solarized Dark sample

Solarised Light

Based on the Solarized (1.0.0beta2) palette, in light mode, by Ethan Schoonover.

Solarized Light sample

Tango

Based on the colour palette for the Tango Desktop Project.

Tango sample

Vibrant

Based on the GTK stylesheet, “Vibrant”, by Lateef Alabi-Oki.

Vibrant sample

Default

And of course, you can always return to the original MATLAB color scheme provided by MathWorks using the default.prfcolor preferences file.

Default

後序

小夥伴們可以選擇自己喜歡的方案了^^

在這之後我又更改了字型,從preferences裡將字型改為了Consolas,感覺整個編輯器都煥然一新啦