Notepad++ not showing python class or function in Function List
Quick note to self that hopefully will be useful to someone else over the inter-webs 🙂
- When enabling the Function List pane in Notepad++ on a python file containing multiple functions and classes, the last item may not be displayed in the list
- in my case it was a class which was completely absent along with all its methods
Solution: make sure that the last line of the python file is not indented!
The python file parser generates the Function List rightly using the file indents to identify functions and classes. Unfortunately, if the last line of the file is indented, the last object in the file will not be considered “closed” and therefore it will not show in the Function List.
Happy Coding! … Continue reading »