Login  Register

Re: Can I reduce "8 spaces per tab" in text window?

Posted by Rasband, Wayne (NIH/NIMH) [E] on Jan 26, 2017; 5:06pm
URL: http://imagej.273.s1.nabble.com/Can-I-reduce-8-spaces-per-tab-in-text-window-tp5017944p5017952.html

> On Jan 25, 2017, at 7:09 AM, Norbert Vischer <[hidden email]> wrote:
>
> Hello,
>
> When running ImageJ on MacOS with Java 8, a tab in a text window corresponds to 8 spaces, which is not practical for indenting code.
>
> With Java 6, it was 4 spaces.
>
> How can I adjust the spaces per tab?

This is a bug in Java 8. The workaround is to use spaces instead of tabs. To make this easier, the latest daily build adds an Edit>Detab command to the text editor, which replaces each tab character with a specified number of spaces. Check “Insert spaces for tabs” in the dialog and the editor will insert spaces when you press the tab key.

-wayne

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html