Configure Octave to avoid automatic endfor, endif auto-completion

Viewed 219

I'm using Octave to teach my students. The course is about MATLAB and Octave, and we need all the code was compatible between MATLAB and Octave. The version of Octave installed on university computers automatically sets an endif or endfor when a program is being typed, and we need all the code blocks to simply use end. Is there a way to configure Octave to not automatically do this endif or endfor autocomplete?

2 Answers

In Octave v4.4.1 on MacOS, there is an option in Preferences->Editor (you'll have to scroll down to see it):

enter image description here

UPDATE

As pointed out by the maintainers in the submitted bug report, this option does actually exist.

Go to the preferences dialogue, on the editor tab. Now scroll down, to the "Indentation" section. There should be an option there saying 'Auto insert after "if" etc.' and a drop down dialogue there giving you the options "Nothing", "endif etc", and "end".

Related