keyboard shortcuts for netbeans

Upload: uddhavscribd

Post on 30-May-2018

217 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/14/2019 Keyboard Shortcuts for NetBeans

    1/2

  • 8/14/2019 Keyboard Shortcuts for NetBeans

    2/2

    Highlights of NetBeans IDE 6.1 Keyboard Shortcuts & Code Templates

    When typing in the Source Editor, you can generate thetext in the right-column of the following list by typingthe abbreviation that is listed in the left-column and then

    pressing Tab.

    Java Editor Code Templates

    En EnumerationEx ExceptionOb ObjectPsf public static finalPsfb public static final booleanPsfi public static final intPsfs public static final StringSt Stringab abstractbo booleanbr break ca catch (

    cl classcn continuedf default:dowhile do {

    } while (condition);eq equalsex extendsfa falsefi finalfl floatforc for (Iteratorit= collection.iterator();

    it.hasNext();) {

    Objectelem = (Object) it.next();}

    fore for (Objectelem : iterable) {}

    fori for (int i = 0; i < arr.length; i++) {}

    fy finallyie interfaceifelse if (condition){}else {

    }

    im implementsiof instanceof ir importle lengthnewo Objectname = new Object(args);

    pe protected

    pr privatepsf private static finalpsfb private static final booleanpsfi private static final intpsfs private static final Stringpst printStackTrace();psvm public static void main(String[] args){

    }pu publicre returnserr System.err.println ("|");sout System.out.println ("|");

    st staticsw switch (sy synchronizedtds Thread.dumpStack();th throwstrycatch try {}

    catch (Exception e) {}tw throwtwn throw newwh while (whileit while (it.hasNext()) {

    Objectelem = (Object) it.next();

    }JSP Editor Code Templates

    ag application.getAttribute("|")ap application.putAttribute("|",)ar application.removeAttribute("|")cfgi config.getInitParameter("|")

    jspf

    jspg

    jspi

    jspp

    jsps jspu oup out.print("|")

    oupl out.println("|")pcg pageContext.getAttribute("|")pcgn pageContext.getAttributeNamesInScope("|")pcgs pageContext.getAttributesScope("|")pcr pageContext.removeAttribute("|")pcs pageContext.setAttribute("|",)pg pga pgb pgc pgerr pgex

    pgie pgim pgin pgit pgl pgs rg request.getParameter("|")sg session.getAttribute("|")sp session.setAttribute("|", )sr session.removeAttribute("|")tglb

    To Change Default Settings:

    1. Choose Tools > Options from the main menu.

    2. For code templates, select Editor and click the CodeTemplates tab. Here you can also change the

    expansion key, from Tab to something else.

    3. For keyboard shortcuts, select Keymap and choose aprofile from the Profile drop-down list.

    Complete List of Keyboard Shortcuts:

    wiki.netbeans.org/wiki/view/KeymapProfileFor60