Indentation issue

2. Help
GVC
2005-07-26
2012-11-13
  • GVC
    GVC
    2005-07-26

    Hi,

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

    When typing the following:

    if ( test )
    {
        f();
        g();

    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,

    --Geert

     
    • 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! ;)