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 248931

Summary: Missing commonly used code templates
Product: javascript Reporter: Ondrej Brejla <obrejla>
Component: EditorAssignee: Petr Pisl <ppisl>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P1    
Version: 8.1   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description Ondrej Brejla 2014-11-26 15:37:44 UTC
Please, add these code templates ;) There is an indentation on a "blank" line between "{}" ;)

Abbrv: afun
Text:
function(${cursor}) {
    
}

Abbrev: afunn
Text:
function(${cursor}) {
    
};

Abbrev: it
Text:
it('${cursor}', function() {
    
});

Abbrev: des
Text:
describe('${cursor}', function() {
    
});

Abbrev: def
Text:
define([
    '${cursor}'
], function() {
    
});

Thanks!
Comment 1 Petr Pisl 2014-12-02 16:01:41 UTC
Should be available in the next web-main build or daily build.
Comment 2 Quality Engineering 2014-12-04 04:18:59 UTC
Integrated into 'main-silver', will be available in build *201412040001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/a2a144113f9d
User: Petr Pisl <ppisl@netbeans.org>
Log: #248931 - Missing commonly used code templates