【问题标题】:Changing the Default Editor on Octave comes with an Error Message在 Octave 上更改默认编辑器会出现错误消息
【发布时间】:2020-06-13 14:45:21
【问题描述】:

我用以下几行将我的默认 Octave 编辑器更改为 Notepad++:

EDITOR('C:\Octave\Octave-5.2.0\notepad++\notepad++.exe');
edit ("editor", sprintf ("%s %%S", EDITOR()))
edit mode async

当我写编辑时会弹出记事本,它工作正常。但是每次我打开 Octave CLI 时,都会出现以下错误:

error: The EDITOR option of edit has been removed.  Use EDITOR() directly.
error: called from
    edit at line 165 column 9
    C:\Users\emiry\.octaverc at line 8 column 1

如何在不触发错误的情况下更改编辑器? 另外别忘了喝水。 (你不需要删除这个)

【问题讨论】:

    标签: octave


    【解决方案1】:

    警告来自第二行

    edit ("editor", sprintf ("%s %%S", EDITOR()))
    

    如果你看help edit 您会注意到 editor 不再使用。 设置是你的第一行

    EDITOR('C:\Octave\Octave-5.2.0\notepad++\notepad++.exe');
    

    【讨论】:

      猜你喜欢
      • 2018-06-04
      • 1970-01-01
      • 1970-01-01
      • 2021-12-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-08-17
      相关资源
      最近更新 更多