Automatic indentation for Python in Notepad++

前端 未结 12 1801
既然无缘
既然无缘 2020-12-16 09:35

I\'ve been googling lots and this is getting really frustrating. It doesn\'t act like idle.

Example:

else:  
    name = \'World\'
    print \'Howdy\         


        
12条回答
  •  旧时难觅i
    2020-12-16 10:32

    I played a bit with python in Notepad++ and I had a problem with the tab. Since in python your indentation is really important but notepad ++ put space instead of a tab.

    So to change to tab you need to go in notepad ++ Menu Settings > Preferences... then select Tab Settings Then select python in the Tab Settings box and uncheck Use default value and check Replace by space.

    Like the other answer, you might want to consider another ide. I personally use eclipse with the pydev plugin and django plungin. Erik is nice too.

提交回复
热议问题