Try set TabWidth=4 in the config, restart J so it picks up the setting,
then in the terminal:

   (TAB,'123') fwrite '~temp/t1.ijs'

In the editor, open the script and it should show 4 spaces before the '123'.


On Tue, Aug 14, 2018 at 5:46 AM Don Guinn <[email protected]> wrote:

> Under Edit/Configure/QT ide I found TabWidth. It was blank. I assigned it a
> value of 2. Then edited a file and put a tab at the beginning. It showed up
> as one space in the editor but when I loaded the script and viewed it the
> tab took 2 spaces. It was still a tab. It was not converted to spaces.
>
> On Mon, Aug 13, 2018 at 8:44 PM Ian Clark <[email protected]> wrote:
>
> > Thanks, Chris.
> >
> > On Mon, Aug 13, 2018 at 2:34 PM, chris burke <[email protected]>
> wrote:
> >
> > > menu Edit|Configure|Qt Ide, set TabWidth.
> > >
> > > The Format in the base config is for formatting the code, see the
> > > Script|Format menu.
> > >
> > > On Mon, Aug 13, 2018 at 6:07 AM Ian Clark <[email protected]>
> wrote:
> > >
> > > > I use hard-TAB extensively to format my code: a habit I'm trying to
> > kick…
> > > >
> > > > How do I alter the width of the whitespace resulting from TAB in jqt?
> > It
> > > > seems to be different in j807 and j806 (or else there's a setting I'm
> > > > missing). And it's not a whole number of spaces in either, but
> that's a
> > > > side-issue.
> > > >
> > > > Ditto, how do I get the tab key to write 6 spaces instead?
> > > >
> > > > I've tried altering (as instructed) the assignment to Format in menu
> > > >    Edit > Configure > Base
> > > > but it doesn't seem to do anything.
> > > >
> > > >    JVERSION
> > > > Engine: j807/j64nonavx/darwin
> > > > Beta-e: commercial/2018-05-25T12:55:54
> > > > Library: 8.07.16
> > > > Qt IDE: 1.7.1/5.9.5
> > > > Platform: Darwin 64
> > > > Installer: J807 install
> > > > InstallPath: /applications/j64-807
> > > > Contact: www.jsoftware.com
> > > >
> ----------------------------------------------------------------------
> > > > For information about J forums see
> http://www.jsoftware.com/forums.htm
> > > ----------------------------------------------------------------------
> > > For information about J forums see http://www.jsoftware.com/forums.htm
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to