Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Code formatter: how to insert line between methods?
Code formatter: how to insert line between methods? [message #85357] Mon, 30 June 2003 09:32 Go to next message
Eclipse UserFriend
Originally posted by: ran.~Qfish.com

Hi.
When reformating, how do I set eclipse to insert a blank line between
methods, between import block and class def etc?

TIA.
btw, I'm using Version: 2.1.0 Build id: 200303272130
Re: Code formatter: how to insert line between methods? [message #85639 is a reply to message #85357] Mon, 30 June 2003 12:46 Go to previous message
Eclipse UserFriend
Originally posted by: rhino1.NOSPAM.sympatico.ca

"R@nsh!" <ran@~Qfish.com> wrote in message
news:bdpe5g$m0d$1@rogue.oti.com...
> Hi.
> When reformating, how do I set eclipse to insert a blank line between
> methods, between import block and class def etc?
>
> TIA.
> btw, I'm using Version: 2.1.0 Build id: 200303272130
>

I'm not sure if I understand your question correctly.

If you are asking how to insert a blank line in the editor view, it's just
like almost every other GUI-based editor I've ever seen, from Notepad
through Eclipse: put your cursor at the start of the line that should be
after the blank line, press Enter, and bingo, you've got a blank line.

If you're talking about the "auto-format" that happens when you right-click
in the editor window and choose Source/Format, you don't have too much
control over that. Go to Windows/Preferences and select the Java node and
the code formatter subnode. All the "new line" options are in the New Lines
tab of the Code Formatter. My version of Eclipse doesn't have an option for
inserting a new line before a new method but you have a slightly newer
version of Eclipse so they might have what you want.

If you really think you need that, you can probably send in a feature
request. I don't know how they choose which features they actually implement
though. In other words, you can ask for this but I wouldn't hold my breath
that they actually add it to the product unless a lot of other people ask
for it.

Rhino
Previous Topic:eclipse BoFs in July: OSCON, Portland and ECOOP, Darmstadt
Next Topic:CVS update problem on Eclipe 3.0 M1. --C invalid option ?
Goto Forum:
  


Current Time: Wed Jun 18 13:56:43 EDT 2025

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

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

Back to the top