Indentation issue

  • GVC

    GVC - 2005-07-26


    Is Notepad++ able to align the left and right braces automatically in, for instance, an "if" statement?

    When typing the following:

    if ( test )

    and then entering the '}' character, it's put under the 'g' of the function g() in stead of under the opening '{'.

    I have to press the backspace to get the cursor first under the '{' and then type the '}'

    If it's possible to un-indent automatically, how can this be achieved?

    Best rgds,


    • Paulius

      Paulius - 2005-07-26

      I think this functionality could be added by plugin.
      A starting point could be the example "Insert" plugin and it's "Close HTML/XML tag automaticaly" function.

      In case you didn't know - you can download the sources for this plugin from npp home page (FAQ -> "Plugin HOWTO" section).

      Good luck! ;)


Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks