Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Dynamic Languages Toolkit (DLTK) » dltk source coding format template
dltk source coding format template [message #6606] Tue, 19 June 2007 15:33 Go to next message
Jae Gangemi is currently offline Jae GangemiFriend
Messages: 28
Registered: July 2009
Junior Member
do you guys have a source formatter template that you are using?

i'm not a fan of the indent, etc style, so i'd like to be able to
reformat the code in a manner that is easier for me, yet change it back
when i submit patches for things so i don't generate huge diffs making
revision history useless.

thx!

--
-jae
Re: dltk source coding format template [message #6626 is a reply to message #6606] Fri, 22 June 2007 04:03 Go to previous messageGo to next message
Andrei Sobolev is currently offline Andrei SobolevFriend
Messages: 17
Registered: July 2009
Junior Member
Jae Gangemi wrote:
>
> do you guys have a source formatter template that you are using?
>
> i'm not a fan of the indent, etc style, so i'd like to be able to
> reformat the code in a manner that is easier for me, yet change it back
> when i submit patches for things so i don't generate huge diffs making
> revision history useless.
>
> thx!
>
We don't have any special infrastructure for formaters yet. But you add
JFace based formatting strategy. For not we have formatting only in
JavaScript( JavaScriptFormattingStrategy class ).
You could obtain JavaScript plugins from Eclipse DLTK repository.

Andrei.
Re: dltk source coding format template [message #6678 is a reply to message #6626] Fri, 22 June 2007 16:09 Go to previous messageGo to next message
Jae Gangemi is currently offline Jae GangemiFriend
Messages: 28
Registered: July 2009
Junior Member
On 2007-06-22 00:03:40 -0400, Andrei Sobolev <andrei.sobolev@xored.com> said:

> Jae Gangemi wrote:
>>
>> do you guys have a source formatter template that you are using?
>>
>> i'm not a fan of the indent, etc style, so i'd like to be able to
>> reformat the code in a manner that is easier for me, yet change it back
>> when i submit patches for things so i don't generate huge diffs making
>> revision history useless.
>>
>> thx!
>>
> We don't have any special infrastructure for formaters yet. But you add
> JFace based formatting strategy. For not we have formatting only in
> JavaScript( JavaScriptFormattingStrategy class ).
> You could obtain JavaScript plugins from Eclipse DLTK repository.
>
> Andrei.

i think you missed what i was asking.....

i'm looking for a coding template for the dltk sources themselves, so
that if i submit a patch for something, i can make sure it's been
formatted according to whatever standards you use. basically something
that hooks into eclipse's source formatting framework.

there are lots of times i'm going through some piece of code and i
find it hard to follow b/c of the formatting, so i reformat it w/ my
standard. if i fix a bug or add fuctionality, etc - i don't want to
submit a patch w/ my formatting changes b/c it makes the diffs useless.

--
-jae
Re: dltk source coding format template [message #8045 is a reply to message #6678] Mon, 25 June 2007 04:01 Go to previous message
Andrei Sobolev is currently offline Andrei SobolevFriend
Messages: 17
Registered: July 2009
Junior Member
Jae Gangemi wrote:
> On 2007-06-22 00:03:40 -0400, Andrei Sobolev <andrei.sobolev@xored.com>
> said:
>
>> Jae Gangemi wrote:
>>>
>>> do you guys have a source formatter template that you are using?
>>>
>>> i'm not a fan of the indent, etc style, so i'd like to be able to
>>> reformat the code in a manner that is easier for me, yet change it
>>> back when i submit patches for things so i don't generate huge diffs
>>> making revision history useless.
>>>
>>> thx!
>>>
>> We don't have any special infrastructure for formaters yet. But you
>> add JFace based formatting strategy. For not we have formatting only
>> in JavaScript( JavaScriptFormattingStrategy class ).
>> You could obtain JavaScript plugins from Eclipse DLTK repository.
>>
>> Andrei.
>
> i think you missed what i was asking.....
>
> i'm looking for a coding template for the dltk sources themselves, so
> that if i submit a patch for something, i can make sure it's been
> formatted according to whatever standards you use. basically something
> that hooks into eclipse's source formatting framework.
>
> there are lots of times i'm going through some piece of code and i find
> it hard to follow b/c of the formatting, so i reformat it w/ my
> standard. if i fix a bug or add fuctionality, etc - i don't want to
> submit a patch w/ my formatting changes b/c it makes the diffs useless.
>
Actually, we use default Eclipse formatting.
Previous Topic:DTLKCore.DEBUG
Next Topic:How do I configure the Ruby Runtime for TestCases
Goto Forum:
  


Current Time: Tue Apr 23 11:04:31 GMT 2024

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

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

Back to the top