Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » How to exclude code from Code Formatter?
How to exclude code from Code Formatter? [message #103019] Mon, 19 September 2005 14:47 Go to next message
lophiomys is currently offline lophiomysFriend
Messages: 14
Registered: July 2009
Junior Member
Is it possible to exclude manually beautified code from the
Code Formatter in the Java editor?

Are there any tags or annotations to tell the Code Formatter not
to touch a section of code?
Re: How to exclude code from Code Formatter? [message #109440 is a reply to message #103019] Fri, 14 October 2005 15:20 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rjsteg.mail.com

Hi Lophiomys,

I'm sure that by now you realize there is no way to prevent code from
being refomatted when you hit Ctrl-Shift-F.

When I saw your question, I realized that I would love this feature. Why
don't you submit an enhancement request into the Eclipse bug database?
How would you tag the code? With Lint like comments - /* BEGIN - NO
FORMAT */. Or with java doc style - /** @stopFormat */ then /**
@beginFormat */.

Sorry,
Randy Stegbauer.
Re: How to exclude code from Code Formatter? [message #109787 is a reply to message #109440] Mon, 17 October 2005 14:56 Go to previous message
Eclipse UserFriend
Originally posted by: wojtek.a.com

Randy Stegbauer wrote:
> Hi Lophiomys,
>
> I'm sure that by now you realize there is no way to prevent code from
> being refomatted when you hit Ctrl-Shift-F.
>
> When I saw your question, I realized that I would love this feature.
> Why don't you submit an enhancement request into the Eclipse bug
> database? How would you tag the code? With Lint like comments - /*
> BEGIN - NO FORMAT */. Or with java doc style - /** @stopFormat */ then
> /** @beginFormat */.

I think it would be best to use the already defined syntax for things like

// TODO

so

// NO FORMAT - BEGIN

// NO FORMAT - END
Previous Topic:half a button is not a button
Next Topic:Line wrap in Eclipse standart editor
Goto Forum:
  


Current Time: Thu Jan 02 16:36:27 GMT 2025

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

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

Back to the top