Bug 141674 - No code formatting tag
Summary: No code formatting tag
Status: RESOLVED DUPLICATE of bug 76435
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.2   Edit
Hardware: PC All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-13 13:50 EDT by Alejandro Salas CLA
Modified: 2006-05-16 15:01 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alejandro Salas CLA 2006-05-13 13:50:53 EDT
Hi, 

I'm kind of addicted to formatting code. I use the format command a lot, and I'm amazed and pleased for all the configuration possibilities in the Code Formatter page. Never the less, there are times where I want a really specific way to format things. So, I was wondering if there could be some kind of tag ( like a comment tag ), that could create a region of code that would not be formatted using the Format Command. Something like:

//BEGIN_NO_FORMAT
   all the code that will not be formatted with the Format Command
//END_NO_FORMAT

Thanx for all the help, and the great work
Really dig eclipse, thanx guys.
Comment 1 Dani Megert CLA 2006-05-14 03:02:38 EDT
Code formatter is provided by JDT Core.
Comment 2 Alejandro Salas CLA 2006-05-14 17:35:40 EDT
(In reply to comment #1)
> Code formatter is provided by JDT Core.
> 

I know.. sorry if I didn't speak correctly. What I was talking about, was some sort of tag or mecanism that will allow the user to mark regions of code as NOT FORMATEABLE (I don't know if that is the right word). So that when one applies the code formatter the regions marked that way would be left as they were.

Thanx again.
Comment 3 Olivier Thomann CLA 2006-05-14 21:17:02 EDT

*** This bug has been marked as a duplicate of 76435 ***
Comment 4 Alejandro Salas CLA 2006-05-16 14:50:14 EDT
(In reply to comment #3)
> 
> *** This bug has been marked as a duplicate of 76435 ***
> 

It's not a duplicate of 76435 which only wants to disable a part of the Formatter. It's a duplicate of 120767. Personally I vote for disabling it as a whole rather than only for line splittings.

Regards,
Alejandro
Comment 5 Olivier Thomann CLA 2006-05-16 15:01:51 EDT
Bug 120767 has been closed as a duplicate of bug 76435.
They are all the same problem which is to provide a mecanism to disable the code formatter for a potion of the code.