简体   繁体   中英

Open specific .m file with Notepad++ custom file editor in Octave 6.2.0 (GUI)

I'm using Octave 6.2.0 with Notepad++ as the custom file editor. When I type edit myfunction from the CLI, the file opens normally, but when I type the same thing from the GUI, the last file that I had open in Notepad++ displays, as if I had opened Notepad++ by itself from Windows Explorer (I'm using Windows 10). In the GUI, it's the same behavior as typing edit without an argument, whereas it works as expected in the CLI. It seems that my GUI is ignoring the edit function input argument, and passing the argument as a string in parentheses, ie edit('myfunction') or edit('myfunction.m') didn't help. Is there a way to change this?

When you're in the GUI octave ignores the EDITOR env variable, and uses the built-in editor.

However, in the preferences / editor dialogue of the octave gui, there is an option to specify a custom editor. This will probably do what you want.

在首选项菜单中的自定义文件编辑器规范中使用双引号中的 Notepad++ 和%f的完整路径,即

C:\\Program Files (x86)\\Notepad++\\notepad++.exe "%f"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM