简体   繁体   中英

Notepad++ collapse level with Python code

I find the collapse level (Alt+1, Alt+2, etc) functionality of Notepad++ extremely handy, but only the first level (Alt+1) seems to work for Python code. Manually collapsing a single code block works fine at any level, so it's not like Notepad++ can't handle the indentation-driven syntax.

Does anyone know of a plugin or maybe a setting I missed that would allow this functionality?

I did this to "Settings->shortcut mapper", and you have to do is "alt+1+2" (without releasing alt) all function of a class is collapsed 快捷键映射器

tecnically is fold all then unfold 1st level

You're right. Python collapse by shortcuts is only at level 1. There isn't any visible setting to fix that. Browsing at plugins page I didn't found anything. Maybe that folding issue is a bug. I suggest you to use Support & online help to get an explanation and/or solution, or submit a bug report if you can't find that.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM