Re: Desperate need for defining shortcuts facility

Darryl Mocek <[email protected]> Mon, 23 Jun 2008 10:01:40 -0700
Newsgroups gmane.comp.java.netbeans.user-interface
Message-ID <[email protected]>
Are you looking for keyboard shortcuts?  In NB 6.1 (and earlier 
versions) there are two things you can do:

Go to Tools (menu) | Options | Editor

1) Click on the 'Code Templates' tab.  You can define one type of 
shortcuts here.  This shortcut lets you type in a short piece of text 
and have it expanded to longer text.  As an example, if you type (in a 
.java file using the editor) the shortcut 'sout' and hit the 'Tab' key, 
'sout' will be expanded to 'System.out.println("");

2) Click on the 'Macros' tab.  Here you can define a macro (you can also 
define a macro by recording it using 'Edit (menu) | Start Recording 
Macro' and 'Edit (menu) | Stop Recording Macro') by typing in macro 
code.  You can then create a keyboard shortcut to execute this code.

-Darryl


Срђан Обућина wrote:
> I  am  finding  that  a  NetBeans  is  in a desperate need for "Define
> shortcuts"  facility. Many modules do not define own shortcuts, so for
> many  command  you  have  to  go  through  2,  or  3 menu levels. Very
> frustrating. So, what we need is a generic "Defino shortcut" facility.
> I  mean,  Versioning  have  absolutely  no shortcuts, and we need them
> almost as our ENTER.
>
>
>