Skip to main content



      Home
Home » Newcomers » Newcomers » Auto-indentation
Auto-indentation [message #120602] Tue, 29 November 2005 15:51 Go to next message
Eclipse UserFriend
Originally posted by: babootcm-eclipsenewcomer.yahoo.com

Hello,

I've searched for information on the topic of how the Eclipse editor
handles auto-indentation and have not been able to find the information
for which I'm looking with the key words I'm using. I would like for any
white space to be removed from an empty line at the point I press a
carriage return. For example (dots represent white space).

1 public void example() {
2 ....final String hello = "Hello, World.";
3 ....
4 ....System.out.println(hello);
5 }

In Eclipse, I end up with white space in line 3. I would like for the
white space to be removed when I press the carriage return for to get to
line 4. That is:

1 public void example() {
2 ....final String hello = "Hello, World.";
3
4 ....System.out.println(hello);
5 }

I'm aware the one can use formatting and Ctrl+Shift+F, but that's an extra
step one has to remember and I would like for it to happen by default. I'm
in an environment where Eclipse is sometimes used as well as shell and VIM
and the extra white space throws off some navigation features of VIM
(e.g., } to move to the next paragraph or empty line). VIM removes this
white space by default.

Thanks in advance for any help,
Matt
Re: Auto-indentation [message #121180 is a reply to message #120602] Thu, 01 December 2005 16:51 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse3.rizzoweb.com

Matt wrote:
> Hello,
>
> I've searched for information on the topic of how the Eclipse editor
> handles auto-indentation and have not been able to find the information
> for which I'm looking with the key words I'm using. I would like for any
> white space to be removed from an empty line at the point I press a
> carriage return.
>

I've been annoyed by that, too. I suggest you look through the Bugzilla
database to see if it has been requested, and if not enter a request
yourself. http://bugs.eclipse.org/bugs

If you do, please post back here with the Bugzilla number.

HTH,
Eric
Re: Auto-indentation [message #122270 is a reply to message #121180] Wed, 07 December 2005 13:06 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: babootcm-eclipsenewcomer.yahoo.com

Eric Rizzo wrote:

> I've been annoyed by that, too. I suggest you look through the Bugzilla
> database to see if it has been requested, and if not enter a request
> yourself. http://bugs.eclipse.org/bugs

> If you do, please post back here with the Bugzilla number.

> HTH,
> Eric

Thanks Eric,

119160 created https://bugs.eclipse.org/bugs/show_bug.cgi?id=119690

Cheers,
Matt
Re: Auto-indentation [message #122281 is a reply to message #122270] Wed, 07 December 2005 13:08 Go to previous message
Eclipse UserFriend
Originally posted by: babootcm-eclipsenewcomer.yahoo.com

Matt wrote: DOH!

> 119160 created https://bugs.eclipse.org/bugs/show_bug.cgi?id=119690

> Cheers,
> Matt

119690 that is...
Previous Topic:Eclipse plugins & network problem
Next Topic:newbie getting started problem
Goto Forum:
  


Current Time: Sun May 04 00:10:09 EDT 2025

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

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

Back to the top