Patiencer / pyscripter

Automatically exported from code.google.com/p/pyscripter
0 stars 0 forks source link

smart comment in code view #368

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello,

I would like to see a little enancement on in code comment management. Often it 
appends that inline comments are added to code to explan what a set of 
istructions does, like this:
[...]
        #setup parser
        self.configurations=ConfigParser.SafeConfigParser()
        #load default options to parser
        for section in self._properties_required:
            self.configurations.add_section(section)
            for option in self._properties_required[section]:
                self.configurations.set(section,option,
                                self._properties_required[section][option])
        #parse class-config file then instance-config file
        self.configurations.read(self.configFile)
        #write back if needed
        if len(self.configurations.sections())>0:
[...]
this kind of code come often from this early stage:
[...]
        #setup parser
        #load default options to parser
        #parse class-config file then instance-config file
        #write back if needed
[...]
it will be nice to let the developer to hide the code seeing just comment so 
she can view just the code for the comment clicking on the comment or so. I 
will be even nicer if the comments could be hidden and showed when the 
developer mouseovers the relative code.
A code section may starts from the comment and ends where definition ends or 
where another comment starts. Comments without content (just a # in an empty 
line) may tell that the code for the previous comment is terminated and hence 
that the subsequent has no comment (one can add it later and is more likely to 
happen once the first step to do it is done ;) 

Original issue reported on code.google.com by FxI...@gmail.com on 15 Jun 2010 at 9:52

GoogleCodeExporter commented 9 years ago
Interesting idea, but it would require a lot of work and is relevant to a 
specific coding style.  I would like to get Code Folding going first and might 
come back to this later.

Original comment by pyscripter on 11 Aug 2010 at 12:30