“unexpected indent” error when using notepad++ for creating django function

前端 未结 3 2041
日久生厌
日久生厌 2021-02-13 16:29

I am following this book to learn django using notepad++, something interesting happens, when I type the function using notepad++ for the following script:

def cu         


        
相关标签:
3条回答
  • 2021-02-13 16:43

    In Notepad++ it is a checkbox here:

    • Settings>Preferences>

    0 讨论(0)
  • 2021-02-13 16:46

    Tell Notepad++ to show you all characters: go View > Show Symbol > Show All Characters. This will show tabs as and spaces as . Replace tabs with spaces where necessary to normalize the indentation.

    0 讨论(0)
  • 2021-02-13 17:05

    Settings->Preferences->Language Menu/Tab Settings->"Replace by space"

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