shortcuts mac

Upload: micedu

Post on 05-Apr-2018

221 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/2/2019 Shortcuts Mac

    1/2

    Highlights of NetBeans IDE 6.9 Keyboard Shortcuts & Code Templates

    Finding, Searching, and Replacing

    G Search Word at Insert PointG Find Next / Previous in FileR Find and Replace in FileF7 Find Usages

    F / H Find / Replace in Projects

    U Find Usages Results

    H Toggle Search Result HighlightsR RenameU, then U Convert Selection to UppercaseU, then L Convert Selection to LowercaseU, then S Toggle Case of Selection

    V Paste FormattedI Jump to Quick Search Field

    Navigating through Source Code

    O / O Go to Type / FileT Go to JUnit TestB Go to Source

    B Go to DeclarationG Go to Line

    M Toggle Bookmark

    . / , Next / Previous Bookmark

    1 / 2 Select in Projects / Files

    [ Move Caret to Matching Bracket

    Q Go To Last Edit Location

    Coding in Java

    I Generate CodeI Fix Imports

    I Fix Import for Selected ClassF

    Format Selection / / /

    Select Left / Right / Up / Down

    / Copy Selection Up / Down

    F12 Inspect Members / Hierarchy/ Add / Remove Comment LinesE Delete Current Line

    Coding in C/C++

    G Go to Declaration

    F9 Evaluate Expression

    Coding in Ruby

    A Jump Rails Action > View. / , Select Next/Previous ElementSpace Display DocumentationT Jump from Test File to File

    Compiling, Testing, and Running

    U Create JUnit TestT Go to JUnit Test

    F6 / F6 Run JUnit Test on Project / FileF6 / F6 Run Main Project / File

    F6 Debug Test File

    Opening and Toggling between Views

    ` Go to Previous DocumentEsc Maximize / Minimize Window

    (Toggle)W Close Currently Selected

    Window

    F4 Close all Windows

    D Undock / Redock Window(Toggle)

    Debugging

    F5 Debug Selected FileF6 Debug Test File (JUnit)

    F5 Continue Debugger SessionF5 Finish Debugger Session

    F4 Run to Cursor Location in FileF7 / F8 Step Into / Over

    F7 Step Out / Go to Called / Calling MethodF7 Evaluate ExpressionF8 Toggle Breakpoint

    F8 New BreakpointF7 New Watch

    Notes:

    represents ctrl

    Press fn to use function keys (e.g., F5, F6, F8)

    Java Editor Code Templates

    When typing in the Source Editor, generate the text in theright-column below by typing the abbreviation that islisted in the left-column and then pressing Tab.

    En EnumerationEx ExceptionOb ObjectPsf public static final

    Psfb public stat ic final booleanPsfi public static final intPsfs public stat ic final StringSt Stringab abstractas assert true;

    bcom /**/bo booleanbr break;ca catch (

  • 8/2/2019 Shortcuts Mac

    2/2

    Highlights of NetBeans IDE 6.9 Keyboard Shortcuts & Code Templates

    cl classcn continuedb doubledf default:dowhile do {

    } while (condition);

    eq equalsex extendsfa falsefcom // fi finalfl float

    forc for (Iteratorit= collection.iterator();it.hasNext();) {

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

    fore for (Objectelem : iterable) {}

    fori for (int i = 0; i < arr.length; i++) {}forl for (int i = 0; i < lst.size(); i++) {Object object = lst.get(i); }

    forst for (StringTokenizer st = newStringTokenizer(""); st.hasMoreTokens();) }

    forv for (int i = 0; i < vct.size(); i++) {Objectobject = vct.elementAt(i);}

    fy finally{ |}ie interfaceifelse if (condition){}else {

    }iff if (exp) {}im implementsinst if (exp instanceofObject) {

    Objectobj = (Object) exp;iof instanceof ir importle lengthna nativenewo Objectname = new Object(args);

    pe protectedpr privatepsf private static final

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

    }

    pu publicre returnrunn Runnable runnable = new Runnable() {

    public void run() {}};serr System.err.print ln ("|");sh shortsout System.out.print ln ("|");soutv System.out.println("Object= " + Object);st staticsu super sw switch (var) { case val: break;

    default: throw new AssertionError();}

    sy synchronizedtds Thread.dumpStack();th throwstr transienttrycatch try {}

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

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

    whilenwhile (en.hasMoreElements()) { Objectelem = (Object)en.nextElement();}

    whilexp while (exp) {}

    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