Automatic indentation for Python in Notepad++

前端 未结 12 1772
既然无缘
既然无缘 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条回答
  • 2020-12-16 10:15

    Geany is a fast and light-weight cross-platform IDE, it supports auto-completion and auto-identation for python code, execute run your program , integrated console , plus has a symbol list side pannel that lets you visualize and browse you code easily, you can jump directly to function definitions and the likes using the context menu, plus it's open source

    How ever for a full fledged IDE i would recommand Eric4

    0 讨论(0)
  • 2020-12-16 10:18

    A better ide might be spyder. http://code.google.com/p/spyderlib/ its about the best IDE I have found.

    0 讨论(0)
  • 2020-12-16 10:25
    1. Click on Settings
    2. Click Preferences...
    3. Browse drop-down menu to find MISC.
    4. Tick the box which says Auto-indent

    After that, you should be fine.

    0 讨论(0)
  • 2020-12-16 10:29

    This is what you want:

    Settings > Preferences > MISC. > Auto-Indent (checkbox)

    --

    Sometimes people ask, "How can I do x in program y?"

    I have a dream that one day "Use program z instead" will not be the most popular response.

    0 讨论(0)
  • 2020-12-16 10:30

    Go to Settings > Preferences > Language

    Then on the "Tab Settings" box select "python" and tick the "Use default value" checkbox.

    You're welcome.

    P.S. Yeah, I know this a little old. I really just couldn't help it. Anyway, this is for version v7.3.2.

    0 讨论(0)
  • 2020-12-16 10:30

    Restart Notepad++ after, and then it works.

    0 讨论(0)
提交回复
热议问题