MATLAB编辑器风格定制

此文借鉴了: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.

Cobalt sample

Darkmate

Based on the GTK stylesheet, "Darkmate", by Luigi Maselli.

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,感觉整个编辑器都焕然一新啦

评论 9
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

拉风小宇

请我喝个咖啡呗

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值