|
Re: Code formatter: how to insert line between methods? [message #85639 is a reply to message #85357] |
Mon, 30 June 2003 12:46  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.06447 seconds