« červen 2005 »
PoÚtStČtSoNe
  
   
       
Today

Navigation

Speaker Profile
Roumen's Weblog
Login
Sun Bloggers
Technorati Profile

Am I popular?

Today's Page Hits: 1674

Contacts

Name: Roman Strobl
E-mail: roman dot strobl
at sun dot com

NetBeans

Java Sites

Javalobby
The Server Side
Java Tips
Java Blogs
java.net
java.sun.com
java.cz

Blogs

NetBeans:
Geertjan
Brian Leonard
Gregg Sporar
Lukas Hasik
Ludovic Champenois
Vincent Brabant
Alexis Moussine-Pouchkine
Jullion-Ceccarelli
Tom Ball
Tim Boudreau
Jesse Glick
Petr Blaha
Ruth Kusterer
Jara Uhrik
xzajo
Jan Lahoda
James Branam
nbextras.org

Sun:
Kazem - bug cartoons ;-)
Tor Norbye
Romain Guy
James Gosling
Chief Gaming Officer
Jim Grisanzio
Jonathan Schwartz

Planets:
Planet Netbeans
Planet Sun
Planet Eclipse

Other:
netbeans-blog.org
Joel Spolsky
Bruce Eckel

License info

Creative Commons License
This work is licensed under a Creative Commons License.

Recent Entries

Map of visits

Locations of visitors to this page
« Previous day (Jun 9, 2005) | Main | Next day (Jun 10, 2005) »
20050610 Pátek červen 10, 2005
A New Planet Created - planetnetbeans.org

I'm delighted to let you know that NetBeans has it's own planet:

http://www.planetnetbeans.org

Many thanks belong to Jack Catchpoole who has created it. If we've missed any NetBeans-related blogs please let us know.
NetBeans Quick Tip #6 - Abbreviations in Editor

NetBeans editor supports so called abbreviations. They can make you really productive, it's enough to type in psfs, press space and the IDE generates for you "public static final String". The full abbreviation list is in Help | Keyboard Shortcuts.

The nice thing is that you can add your own abbreviations. So whenever you find out you're writing something often, you can create an abbreviation and use it instead of typing (all programmers are lazy, aren't they?). An even nicer thing is that there are people willing to share their abbreviations - Michel Graciano from Brazil has sent me a list of his abbreviations. They're more advanced than the IDE offers by default, for instance, you can type in trc and the IDE generates:

try {
    |
} catch (Exception e) {
}


The | mark denotes placement of cursor. I have added into the list one of my popular abbreviations - psvm, it generates:

public static void main(String[] args) {
    |
}


You can download the XML file here. Just copy it to your userdir in ~/.netbeans/4.1/config/Editors/text/x-java/abbreviations.xml. In case this file is already there it means you have already created some abbreviations and then you can just paste the tags from the xml file to add new abbreviations.

These are the contents of the abbreviations XML file:

AbbreviationAction
trtry statement
elifelse if
forfor cycle
whwhile
swswitch
trctry catch
ededitor fold
rnreturn null
fyfinally
cacatch
elelse
foreforeach
tthis
nunull
Dodouble
forjfor cycle with j
totodo
ifif clause
foritfor with iterator
psvmmain method


Next time I will write about macros (Michel has also a great list of macros).


    Disclaimer: The contents of my blog represent my personal opinions which may differ from official views of my employer, Sun Microsystems.