[wingide-users] [IDEA] auto-completion helper

ArShAm Shirvani arshamshirvani at gmail.com
Fri Nov 16 17:49:36 MST 2007


Hi there,
Maybe this helps for dynamic resolutions , for auto-completion :
Assume you have a function :

def myFunction(name , number , flag):

    family = getFromADynamicReturner(name,number)
    dunno = getFromADynamicReturner(flag)

    return [(name,number),not flag]

If you define some kind of standard comments right before the
definition starts ( like what ZDE does with phpdocs ):

##
  # @var name str
  # @var number int
  # @var flag bool
  # @return list [(name:str,number:int),reverted flag:bool]
  ##
def myFunction(name , number , flag):
   # @var family str : this is a real note , and for you , this is
where you can drop a tip for type of variable
    family = getFromADynamicReturner(name,number)
   # @var dunno () : again another situation witht he type of ()
    dunno = getFromADynamicReturner(flag)

    return [(name,number),not flag]

It could be a great helper and also forces developers to learn how to
document their code.

It may override the original auto-completer for complex situations.

Keep on great work
Arsham


More information about the wingide-users mailing list