Pycharm folding user regions do not seem to work after certain levels of indentation.
This work does not work:
def test_a():
def function():
for g in group:
if g[0] is not "BLA":
task(g)
logger.debug('Log this')
It works:
def test_b():
def function():
for g in group:
task(g)
logger.debug('Log this')
The VisualStudio style (#region, #endregion) does not work in this scenario either. This problem only occurs when line comments are placed at the end of lines.
Thanks for the help for the help!
source
share