Menu

#24 Shift-tab to decrease indent

Indefinite
closed
block (7)
5
2017-12-03
2017-11-29
No

Hi Zoltan,

The [Shift]+[Tab] combination seems to do the same thing as the [Tab] key, namely increasing the indent level. If I indent one level too many, I need to remove the additional spacing line by line and re-indent. It would be so convenient if the [Shift]+[Tab] would bring the indentation one level down!

Kind regards,
Martijn

Related

Feature Requests: #24

Discussion

  • Zoltán Turányi

    Hi!

    Thanks. After a quick check, I was not able to reproduce the error. Do you have the internal editor preference "TAB auto-indents" set or cleared? If set, then TAB and Shift+TAB work the same way, they both indent to where Msc-generator thinks the line should be indented. If cleared, TAB and Shft+TAB ought to work as you described and for me they do.

    Note: you can also select many lines (or all with Ctrl+A) and press TAB to auto indent them all (if the above preference is set).

    Indentation is calculated differently for each language, maybe you have a specific file where it does not work? Could you tell me more about when this happens, please?

    Zoltan

     
    • Martijn Schiedon

      Hi Zoltan,

      Thanks for explaining the option! This provides a workaround.

      I can reproduce the error in a block file, with below fragment. The option
      "TAB auto-indents" is on.

      defproc server($id, $product1, $product2 = "") {
        boxcol server~$id: "Server \Q($id)" [server] {
          box: "\Q($product1)" [product];
          if $product2 then {
            box: "\Q($product2)" [product];
          }
        };
      }
      

      If I [Ctrl]+[A] the entire text and hit tab, just the "if" statement
      indent (and that of its contents) increases forever...

      Kind regards,
      Martijn

      On Fri, Dec 1, 2017 at 11:39 AM, "Zoltán Turányi" teknos293@users.sf.net
      wrote:

      Hi!

      Thanks. After a quick check, I was not able to reproduce the error. Do you
      have the internal editor preference "TAB auto-indents" set or cleared? If
      set, then TAB and Shift+TAB work the same way, they both indent to where
      Msc-generator thinks the line should be indented. If cleared, TAB and
      Shft+TAB ought to work as you described and for me they do.

      Note: you can also select many lines (or all with Ctrl+A) and press TAB to
      auto indent them all (if the above preference is set).

      Indentation is calculated differently for each language, maybe you have a
      specific file where it does not work? Could you tell me more about when
      this happens, please?

      Zoltan

      Status: open
      Group: Indefinite
      Created: Wed Nov 29, 2017 02:17 PM UTC by Martijn Schiedon
      Last Updated: Wed Nov 29, 2017 02:17 PM UTC
      Owner: nobody

      Hi Zoltan,

      The [Shift]+[Tab] combination seems to do the same thing as the [Tab]
      key, namely increasing the indent level. If I indent one level too many, I
      need to remove the additional spacing line by line and re-indent. It would
      be so convenient if the [Shift]+[Tab] would bring the indentation one
      level down!

      Kind regards,
      Martijn


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/msc-generator/feature-requests/24/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Feature Requests: #24

      • Zoltán Turányi

        Hi Martijn,

        Indeed, apologies. Fixed. Will be in 6.1.105.

        Z

         
  • Zoltán Turányi

    • labels: --> block
    • status: open --> closed
    • assigned_to: Zoltán Turányi
     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.