Show comments or another way to mark code in PyCharm Structure window

It would be nice to be able to create markers within code that are visible in PyCharm Structure window.

This would make it easier to jump between code.

Example:
## code needed here ##
1
5 comments

Wow, this excellent suggestion has languished in a silent, dark corner for almost 9 years :((((

0

if you have tons of methods in a python class, the PyCharm Structure window is a huge mess!  But if one has different groups of methods, maybe with some kind of standardized comment separator, the PyCharm Structure window could show SECTIONS.

To attain something along those line, I currently have to do a hack, and introduce fake methods with the section names and a distinctive look, as shown...

0

This is much needed. It could be just visuazling a specially formatted comment for e.g, in Python it could be marked by 3 #'s in a sequence or #- <marker> -#

 

### Commands

# The following are command functions
def command1():…
def command2():…

#- APIs -#
def api_call_supporting_command():…

# another command
def another_api_call():…

##- OS integrations -##
def os_command():…
def os2_command():…

0

Californialife88 any ticket number where I can add my vote?

0
Hello there,
Here is feature request regarding marks in Structure tool window: https://youtrack.jetbrains.com/issue/IJPL-47780/Section-marks-in-the-structure-window
Please vote for it to raise its relevance and receive updates regarding its status.
0

Please sign in to leave a comment.