Skip to main content



      Home
Home » Newcomers » Newcomers » Autocomplete
Autocomplete [message #56071] Thu, 21 April 2005 07:24 Go to next message
Eclipse UserFriend
It is really great that Eclipse autocompletes stuff like curly brackets
and so on.
At the moment my Eclipse completes as following

for(something){ <As i press enter here Eclipse puts bracket

} <HERE

But what ia want it to do is following

for(something){ <As i press enter here Eclipse puts bracket and
comment

} //for <HERE

I want it to add also a comment about what that bracket ends...

So how can i do that???
Re: Autocomplete [message #57983 is a reply to message #56071] Tue, 26 April 2005 17:55 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: etc.secureroot.com

Priit wrote:
> It is really great that Eclipse autocompletes stuff like curly brackets
> and so on. At the moment my Eclipse completes as following
>
> for(something){ <As i press enter here Eclipse puts bracket
>
> } <HERE
>
> But what ia want it to do is following
>
> for(something){ <As i press enter here Eclipse puts bracket
> and comment
>
> } //for <HERE
>
> I want it to add also a comment about what that bracket ends...
>
> So how can i do that???
>

I think what you are looking for are the Code Templates or Content
Assist in the Window/Preferences section. I believe there is a Code
Template section for Java and C++ (if you have the CDT installed), and
in the Editor section. If it isn't intuitive how to setup or change
current templates, check the manual.

-Paul
Re: Autocomplete [message #58492 is a reply to message #56071] Wed, 27 April 2005 12:19 Go to previous message
Eclipse UserFriend
Priit,

what you request is not available out of the box. You would need to hack
JavaAutoIndentStrategy to get what you want... or file an enhancement
request.

-tom

Priit wrote:
> It is really great that Eclipse autocompletes stuff like curly brackets
> and so on. At the moment my Eclipse completes as following
>
> for(something){ <As i press enter here Eclipse puts bracket
>
> } <HERE
>
> But what ia want it to do is following
>
> for(something){ <As i press enter here Eclipse puts bracket
> and comment
>
> } //for <HERE
>
> I want it to add also a comment about what that bracket ends...
>
> So how can i do that???
>
Previous Topic:postgreSQL jar files
Next Topic:Editor menu
Goto Forum:
  


Current Time: Fri May 09 15:28:22 EDT 2025

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

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

Back to the top