This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 164149

Summary: Selected default description when creating a php doc block
Product: php Reporter: djungowski <djungowski>
Component: PHPDocAssignee: Ondrej Brejla <obrejla>
Status: NEW ---    
Severity: blocker CC: amobilia, jeremyclarke, rahuijts
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description djungowski 2009-04-30 09:14:05 UTC
When I create a php doc block, i get something like this:
/**
 *
 * @param <type> $key
 * @param <type> $get_array
 * @param <type> $encoding 
 */


What would be great if it could look like this:
/**
 * Enter description here...
 *
 * @param <type> $key
 * @param <type> $get_array
 * @param <type> $encoding 
 */

with the "Enter description here..." text selected by default so i can immediately start typing
Comment 1 jeremyclarke 2009-07-31 19:10:13 UTC
+1 for this idea. 

I think the real solution is to make the entire PHPDoc thing work more like a code template with elements to be filled
in by pressing tab and enter like with 'forek'. 

In code template syntax that would make the example above be formatted as:

/**
 * ${condition}
 *
 * @param ${type} $key
 * @param ${type} $get_array
 * @param ${type} $encoding 
 */
${cursor}

That said I think the proposal in this ticket is rock-solid on its own and if its easier than mine I support it.
Comment 2 Tomasz Slota 2010-02-10 08:46:24 UTC
reassigning to default owner
Comment 3 Filip Zamboj 2010-09-15 12:28:54 UTC
batch reassigning