--nextPart1623624.7hdJsMvF3Z Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Thursday 26 January 2006 01:08, Zack Rusin wrote: > Once you start > working absolutely without a mouse you just can't go back. It's so much > more convenient and less tiring. Can't stress this enough! This is also what the Eclipse guys figured out, s= o=20 they made almost everything accessible with a shortcut. So here's my list of favourite Eclipse features (speaking of the Java IDE p= art=20 of Eclipse): =46ilemanagement: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =2D you can open any class simply by entering its name in an "Open Type" di= alog=20 (Ctrl-Shift-T) - the dialog does auto-completion, so entering just a few characters is=20 usually sufficient - auto-completion even supports wildcards (enter e.g. I*LabelPro to get=20 IViewerLabelProvider) =2D open any file in the same way with Ctrl-Shift-R =2D switch between open files with Ctrl-E (small dropdown listing all open= =20 files, enter the filename to select, again with auto-completion) =2D Alt-Arrow-Left and Alt-Arrow-Right work like a webbrowser history, allo= wing=20 you to navigate between previous edit-locations in different files. Editor: =3D=3D=3D=3D=3D =2D move lines up and down with Alt-Arrow keys. Note, they will automatical= ly be=20 indented according to the current block. =2D delete a single line with Ctrl-D =2D F3 jumps to the declaration of a field, class, method, variable, parame= ter =2D show the structure of the class in a quick-outline dialog with Ctrl-O,= =20 allowing you to quickly navigate to a certain member (selectable via=20 auto-completion). E.g. to go to method doFooSomething(int), you just press= =20 Ctrl-O doFo [return] =2D Ctrl-T on a type declaration, type reference, method declaration or met= hod=20 reference shows you a quick type hierarchy dialog. E.g. to know which classes inherit from a class, just put the cursor=20 anywhere on the class name and press Ctrl-T. Select one of them with=20 auto-completion to go to its definition. Press Ctrl-T again in the dialog to get the supertype hierarchy including= =20 implemented interfaces When pressing Ctrl-T on a method (decl/ref), the quick type hierarchy wil= l=20 show you the class hierarchy with only those subclasses enabled that have=20 reimplemented that method, allowing you to quickly jump to reimplementation= s=20 (Ctrl-T again for the supertype hierarchy) =2D Ctrl-Shift-G on an identifier finds all references to this field, metho= d,=20 type, ... anywhere in all your open projects. Completion in Editor: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =2D Ctrl-Space on an identifier offers completions for that element (types,= =20 methods, fields, ... , even showing the documentation of those in a tooltip) Completion with code templates (relieves you of tedious typing): =2D Ctrl-Space in the class body offers a list of all methods from supercla= sses=20 that can be reimplemented, selectable via auto-completion. The result would= =20 look like public boolean equals(Object obj) { // TODO Auto-generated method stub return super.equals(obj); } The creation of get- and set-methods is offered in the same way. Templates can be user-defined, lots of predefined ones are available, e.g.= =20 "for" to generate a for loop, looping over an array or collection or=20 "toArray", leading to this nice construct toA[Ctrl-Space] (arrow down to select "toArray" -> return) (type[]) collection.toArray(new type[collection.size()]) QuickFixes: =3D=3D=3D=3D=3D=3D=3D=3D When having a compilation error in the code, you can have Eclipse=20 automatically fix that error by pressing Ctrl-1 and choosing one of the=20 proposed fixes (if any). E.g when writing new code, you can focus on the current method body while=20 having eclipse create stubs for all related things that you need: private int doSomething() { MyOtherClass other =3D new MyOtherClass(); (Eclipse would now complain that MyOtherClass does not exist =3D> Press Ctr= l-1=20 in that line and select "Create class 'MyOtherClass'", opening the New-Clas= s=20 wizard. After having created the class, go on. int myResult =3D other.calculateSomething(Math.PI); (Press Ctrl-1 and select "Create method calculateSomething(double) in=20 MyOtherClass.java'" to have that method generated automatically as public void calculateSomething(double pi) { // TODO Auto-generated method stub =20 } Other options are e.g. to cast to float or change the method signature of t= he=20 method if it would already exist with a float-parameter instead of double. I could go on with automated refactorings, the call hierarchy view etc. but= =20 the list is long enough already. To bad all this is only available for=20 Java... Cheers, Carsten --nextPart1623624.7hdJsMvF3Z Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- iQEVAwUAQ9iwg6WgYMJuwmZtAQIi0wf+PLeomB1QTMJVeS37R4NNUOx/0H5ZSsK6 NXvITI6tVZ1uFonoAZAmeeqZfbtDNn53hKOgTeoNni7mUbqdKKFcPrqec9OfbkE3 5JTKA7svcIl1Yky0/JxgN8M960zl3kVuDJvQz2/IaK6oJiiyz933TMlvlS6OEoyR qcIRscjBUNuKvrfct/Zh3pDRa25rLUqUDG6t0b/8rF2fIdKXjDKBsrTd2Nl3SQCQ yAREE+N7EnYE+vTLsbazZ3La0WgfMsYNfkEnyi5WAaMMwlcGBNUICwMKN2G+QCSx 035iHSgs5kn/OoTq1R3tw2BJw2s+CUGx+Mk5KM3N2cGrYGTL07ayMA== =UqaC -----END PGP SIGNATURE----- --nextPart1623624.7hdJsMvF3Z--