为什么我的 Octave GUI 编辑器有这么多问题?我该如何修复它?

发布于 2025-01-20 15:31:59 字数 614 浏览 2 评论 0原文

GUI 的编辑器简直是一团糟。当我创建一个全新的脚本时,间距和字体都比较好。 但是,如果我打开任何现有函数,它会显示行与行之间的空间太大,并且空格和制表符显示的空间比应有的空间多。示例如下所示:

在此处输入图像描述

我尝试选择“编辑”-“首选项”-“常规”-“使用自定义文件编辑器”选项,然后选择“notepad++ -n%l %f”。我的计算机上已安装了 notepad++。 当我选择此选项并单击“确定”时,Octave GUI 崩溃了。当我现在尝试重新打开文件时,收到错误“无法启动自定义文件编辑器”。

如果我更改字体,可以暂时解决该问题。但这些变化都没有持续下去。通常单击“确定”会导致八度音程崩溃。每当重新打开它时,字体都会恢复为默认值,并且间距问题又会出现。

如何使编辑器显示适当的前导和空格宽度? 如果可能的话,我还希望能够进一步定制。例如,我希望它使用深色主题。但现在只要在行之间显示合理的间距就可以使其至少可用。

我使用的是 Windows 10,Octave 版本 6.4.0

The editor for the GUI is a complete mess. When I create a brand new script, the spacing and font are relatively ok.
However, if I open any existing function, it is shown with way too much space between lines, and spaces and tabs show way more space than they should. An example is shown below:

enter image description here

I tried selecting the Edit - Preferences - General - Use custom file editor options, and chose "notepad++ -n%l %f. I have notepad++ installed already on my computer.
When I selected this option and clicked ok, the Octave GUI crashed. When I tried to reopen a file now, I get the error "could not start custom file editor".

If I change the font, it temporarily fixes the issue. But none of the changes persist. Often clicking OK crashes octave. And any time it's reopened, the fonts revert to default, and the spacing problems returns.

How can I make the editor show an appropriate leading and space width?
I would also like to be able to further customize, if possible. For example I'd like it to use a dark theme. But for now just showing a reasonable space between lines would make this at least useable.

I'm using Windows 10, Octave version 6.4.0

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文