My objective is to be able to properly indent my code as I’m writing it, without having to manually hit TAB (possibly several times) for every new line.
Ideally, if I’m already indented N levels into a definition, when I hit enter, the editor would start the next line at that same indentation level (i.e. TAB’d N levels in). But even if I had that feature, I’d still need to be able to TAB/de-TAB blocks of code on an ad-hoc basis after refactoring. The complementary request, to be able to define what TAB means, arises from the fact that while I personally prefer indentation to be expressed with literal TAB characters, that’s far from a universal preference, and also I’ve found that in JQt, one tab stop is much wider than I’m used to. I’d probably end up setting one indentation level to 2 (possibly 3) space characters. -Dan > On Aug 17, 2015, at 11:47 AM, chris burke <[email protected]> wrote: > > OK, this is possible. > > I never use TAB and wonder whether what you want is covered (or should be > covered) by the Script|Format command (Ctrl+Shift+P)? That is, do you want > to explicitly set your formatting, or really just want to pretty print your > script in some standard way? > > > On 17 August 2015 at 07:46, Dan Bron <[email protected]> wrote: > >> Yes, I’d support that change. >> >> Also, one thing I’m missing in JQt from the old Windows C++ frontend is >> highlighting/selecting multiple lines and then pressing TAB to indent them >> one level, simultaneously (and SHIFT+TAB to outdent them one level >> simultaneously). >> >> If you restore that behavior, however, you might want to consider offering >> an option to set what “indent one level” means (e.g. a literal TAB >> character, 8 spaces, 4 spaces, 2 spaces, whatever). >> >> >> -Dan >> >>> On Aug 17, 2015, at 10:38 AM, chris burke <[email protected]> wrote: >>> >>> The Jqt editor currently uses Ctrl+Shift+N to comment lines and >>> Ctrl+Shift+B to uncomment them. These keys have been used in J for many >>> years, but are non-standard. >>> >>> The usual practice in text editors is to use Ctrl+/ as a toggle and >>> Ctrl+Shift+/ as a block toggle, i.e, in J804: >>> >>> Ctrl+/ toggle NB. on/off on selected lines >>> Ctrl+Shift+/ toggle Note on/off, i.e. wrap selected lines in >> Note'' >>> .... ) >>> >>> Is this OK? >>> ---------------------------------------------------------------------- >>> 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
