Skip to main content



      Home
Home » Newcomers » Newcomers » Netbeans Keyboard Shortcuts in Eclipse
Netbeans Keyboard Shortcuts in Eclipse [message #114161] Wed, 02 November 2005 16:10 Go to next message
Eclipse UserFriend
Originally posted by: a.b.com

Guys,

I'm new to Eclipse, but I've been a long time Netbeans user.

I really like the editor now that I'm really starting to get comfortable
with it, but there is one thing in the Netbeans editor that I really miss.

In netbeans they have some abbreviations that you can type that will expand
the word after hitting the spacebar. For example, if you type:

pu<spacebar> will expand to public
pr<spacebar> will expand to private
St<spacebar> will expand to String

As you can probably see this can save a lot of time and typos while typing.

Is there a way to do this in Eclipse?

Any help would be greatly appreciated.

Thanks in advance.
Re: Netbeans Keyboard Shortcuts in Eclipse [message #114187 is a reply to message #114161] Wed, 02 November 2005 18:10 Go to previous messageGo to next message
Eclipse UserFriend
Two approaches:

Try using 'code assist' also known as 'content assist'

type a few characters of code > press CTRL + space or go to Eclipse > Edit
Content assist

A list of possible code completions appears.

Alternatively try 'auto activation' - this is a quicker way of getting what
you want as Eclipse takes a guess at what you want. You configure this by
going to 'window' > preferences > Java > Editor > Code assist

Cheers - Vince

"Schwame" <a@b.com> wrote in message news:dkb9ve$2ks$1@news.eclipse.org...
> Guys,
>
> I'm new to Eclipse, but I've been a long time Netbeans user.
>
> I really like the editor now that I'm really starting to get comfortable
> with it, but there is one thing in the Netbeans editor that I really miss.
>
> In netbeans they have some abbreviations that you can type that will
> expand the word after hitting the spacebar. For example, if you type:
>
> pu<spacebar> will expand to public
> pr<spacebar> will expand to private
> St<spacebar> will expand to String
>
> As you can probably see this can save a lot of time and typos while
> typing.
>
> Is there a way to do this in Eclipse?
>
> Any help would be greatly appreciated.
>
> Thanks in advance.
>
Re: Netbeans Keyboard Shortcuts in Eclipse [message #114487 is a reply to message #114187] Thu, 03 November 2005 11:48 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: a.b.com

Thanks for responding.

I've been using the content assist with the CTRL + space, but it
takes a lot longer than typing a few characters of a word.

Another good example, is typing pst changes into printStackTrace();

As you can see this can save a lot of time while coding.

The auto-activation only seems to auto-activate the content assist.

Is there a way that I could make my own plugin to achieve this effect?

Thanks in advance.

j

"Vince Jacobs" <vincej@shaw.ca> wrote in message
news:dkbhac$bpc$1@news.eclipse.org...
> Two approaches:
>
> Try using 'code assist' also known as 'content assist'
>
> type a few characters of code > press CTRL + space or go to Eclipse > Edit
> Content assist
>
> A list of possible code completions appears.
>
> Alternatively try 'auto activation' - this is a quicker way of getting
> what you want as Eclipse takes a guess at what you want. You configure
> this by going to 'window' > preferences > Java > Editor > Code assist
>
> Cheers - Vince
>
> "Schwame" <a@b.com> wrote in message news:dkb9ve$2ks$1@news.eclipse.org...
>> Guys,
>>
>> I'm new to Eclipse, but I've been a long time Netbeans user.
>>
>> I really like the editor now that I'm really starting to get comfortable
>> with it, but there is one thing in the Netbeans editor that I really
>> miss.
>>
>> In netbeans they have some abbreviations that you can type that will
>> expand the word after hitting the spacebar. For example, if you type:
>>
>> pu<spacebar> will expand to public
>> pr<spacebar> will expand to private
>> St<spacebar> will expand to String
>>
>> As you can probably see this can save a lot of time and typos while
>> typing.
>>
>> Is there a way to do this in Eclipse?
>>
>> Any help would be greatly appreciated.
>>
>> Thanks in advance.
>>
>
>
Re: Netbeans Keyboard Shortcuts in Eclipse [message #114509 is a reply to message #114487] Thu, 03 November 2005 13:02 Go to previous messageGo to next message
Eclipse UserFriend
Improving the response performance can be done by going into the preference
configuration and changing the number of milliseconds delay.

I Don't know about your own plug-in - sorry.

Vince


"Schwame" <a@b.com> wrote in message news:dkdf0u$oeb$1@news.eclipse.org...
> Thanks for responding.
>
> I've been using the content assist with the CTRL + space, but it
> takes a lot longer than typing a few characters of a word.
>
> Another good example, is typing pst changes into printStackTrace();
>
> As you can see this can save a lot of time while coding.
>
> The auto-activation only seems to auto-activate the content assist.
>
> Is there a way that I could make my own plugin to achieve this effect?
>
> Thanks in advance.
>
> j
>
> "Vince Jacobs" <vincej@shaw.ca> wrote in message
> news:dkbhac$bpc$1@news.eclipse.org...
>> Two approaches:
>>
>> Try using 'code assist' also known as 'content assist'
>>
>> type a few characters of code > press CTRL + space or go to Eclipse >
>> Edit Content assist
>>
>> A list of possible code completions appears.
>>
>> Alternatively try 'auto activation' - this is a quicker way of getting
>> what you want as Eclipse takes a guess at what you want. You configure
>> this by going to 'window' > preferences > Java > Editor > Code assist
>>
>> Cheers - Vince
>>
>> "Schwame" <a@b.com> wrote in message
>> news:dkb9ve$2ks$1@news.eclipse.org...
>>> Guys,
>>>
>>> I'm new to Eclipse, but I've been a long time Netbeans user.
>>>
>>> I really like the editor now that I'm really starting to get comfortable
>>> with it, but there is one thing in the Netbeans editor that I really
>>> miss.
>>>
>>> In netbeans they have some abbreviations that you can type that will
>>> expand the word after hitting the spacebar. For example, if you type:
>>>
>>> pu<spacebar> will expand to public
>>> pr<spacebar> will expand to private
>>> St<spacebar> will expand to String
>>>
>>> As you can probably see this can save a lot of time and typos while
>>> typing.
>>>
>>> Is there a way to do this in Eclipse?
>>>
>>> Any help would be greatly appreciated.
>>>
>>> Thanks in advance.
>>>
>>
>>
>
>
Re: Netbeans Keyboard Shortcuts in Eclipse [message #114661 is a reply to message #114487] Fri, 04 November 2005 05:34 Go to previous message
Eclipse UserFriend
Schwame wrote:
> I've been using the content assist with the CTRL + space, but it
> takes a lot longer than typing a few characters of a word.
>
> Another good example, is typing pst changes into printStackTrace();

In recent builds (for example 3.2M3), define your template for
printStackTrace() and configure a separate command for template
completion (on the Java > Editor > Content Assist > Work in Progress
preference page). 'pst' will not be expanded automatically, but once you
press the template expansion button...

Hope this helps a little. tom.
Previous Topic:more help with java.util.scanner
Next Topic:Building jars.
Goto Forum:
  


Current Time: Wed Jul 23 16:15:52 EDT 2025

Powered by FUDForum. Page generated in 0.09530 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top