Jump to content


Shortkey's To Sentences You Use Often


  • Please log in to reply
3 replies to this topic

#1 pellech

pellech

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 30 March 2005 - 07:51 PM

On thing i miss in all the programs i have used is the abilety to program a shortcut key so every time u pressed it, it would write a line. like for example System.out.println();  or anything else u may wish to use the shortcut key for..
Thanks :)

#2 E-E-R

E-E-R

    Advanced Member

  • Members
  • PipPipPip
  • 1,367 posts
  • Gender:Male
  • Location:The Netherlands
  • Interests:Programming, Gaming, DC

Posted 30 March 2005 - 07:54 PM

try this:
out<tab>

configurable in:
Configure > Options > Code Templates

(this might be Pro only)
"Many are persistently in pursuit of the way they have chosen; few in pursuit of the goal"

#3 lordSauron

lordSauron

    Advanced Member

  • Members
  • PipPipPip
  • 192 posts
  • Gender:Male
  • Location:California, United States
  • Interests:Dominating Middle-earth, enslaving all the free peoples and keeping my Silmaril stones nice and shiny.

Posted 31 March 2005 - 10:52 PM

QUOTE(E-E-R @ Mar 30 2005, 12:54 PM)
(this might be Pro only)
Yeah, that is a pro only feature, but it's really worth it!  I never write another for loop again - I just say for<enter> and then add the arguments!  This is one of JCreator's best features, even if it exists in most other IDEs as well.

Lord Sauron the Great
lordSaurontheGreat@gmail.com
JDK 6 Documentation - READ IT!  LOVE IT!  LIVE IT!
THOU SHALT GOOGLE BEFORE POSING THY QUERY!
If you're reading this you have given me control of your mind.
Why do accesses to your mind throw a "null pointer exception?"

#4 lordSauron

lordSauron

    Advanced Member

  • Members
  • PipPipPip
  • 192 posts
  • Gender:Male
  • Location:California, United States
  • Interests:Dominating Middle-earth, enslaving all the free peoples and keeping my Silmaril stones nice and shiny.

Posted 22 April 2005 - 08:36 PM

Just in case you're wondering, I do talk to myself.

Code templates are not just for the defaults.  You can create totally new ones as well.  For instance, one of my favourites goes like this:
You type: "
You press:<enter>
JCreator completes the string literal: "|"
the '|' being where the cursor is put.  I haven't tried putting two of those in a template before.  This is really powerful, so you can do stuff like
import<enter>
JCreator completes the imports you most often use:
CODE
import java.awt.*;
import java.awt.event.*;
import java.io.*;
import javax.swing.*;
import java.util.*;
I like to hear myself talk/type, too.

Lord Sauron the Great
lordSaurontheGreat@gmail.com
JDK 6 Documentation - READ IT!  LOVE IT!  LIVE IT!
THOU SHALT GOOGLE BEFORE POSING THY QUERY!
If you're reading this you have given me control of your mind.
Why do accesses to your mind throw a "null pointer exception?"