Menu

Indent tabs

McAN
2008-09-22
2012-11-13
  • McAN

    McAN - 2008-09-22

    Hello,
    either I have missed how to do this, or I have a suggestion.

    I really like Notepad++ it's just one thing bothering me. At my company we use notepad++ for both c++ and python, the thing is that in c++ we use tab indents 3 spaces but in python we use 4 spaces...

    The right thing to do is of course to edit the files to match, but that ain't going happen... So it would be great to add an optional property to the langs.model.xml file so that could be language spec.

    //Markus

     
    • Garth Snyder

      Garth Snyder - 2009-08-17

      This is the issue I came here to mention as well. In my case it's Ruby with its 2-space tab convention that's the fly in the ointment. This does seem like something that should be configurable by language in some way, although I can definitely see the need for a global option as well.

      You know, one thing the languages with tab conventions seem to share is a preference for spaces over tables. Maybe this issue could be addressed by simply allowing Notepad++ to conform its behavior to the conventions actually in use in the current file. If the current file seems to use 3-space tabs, then new tabs are at 3-space intervals, etc.

       
    • Don HO

      Don HO - 2009-08-19

      In the release v5.5, the Tab size will be customizable for per language.

      Don

       
      • eksortso

        eksortso - 2009-08-19

        Hooray! This is a big boost! With this, I can easily work with both Python and SQL scripts in the same editor.

         
      • Frank Fesevur

        Frank Fesevur - 2009-08-19

        Great news!

         
MongoDB Logo MongoDB