Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Auto-indentation

2. Help
2005-11-14
2012-11-13
  • Hi,

    Is there an option in N++ so that, after I write

    void foo()
    {
        |

    it will automatically indent my cursor to be where the | is when I press enter after typing the { ?

    If not could we please have that option?
    It's called auto-indentation of blocks

     
    • the | should be moved over by a tab to the right after you press enter on the {

       
    • Also, if you close the { block with a } by putting it on a single line by itself, but it's at the wrong tabulation level, it should auto-*unindent* for you and move the } over to the left by a tab.