generated code - formatting [message #116521] |
Wed, 01 February 2006 01:08 |
Eclipse User |
|
|
|
Originally posted by: stjohnsoftware.yahoo.com
I used VE to generate some code for a JFrame.
I'm very particular about formatting, and unfortunately I find what seems to
be the standard for braces in Java annoying and difficult to read.
I want to see code that looks like this:
if (checkCondition())
{
doThis();
doThat();
}
and I absolutely can't stand to see code that looks like this:
if (checkCondition()) {
doThis();
doThat();
}
So my question is this: Is there an option in Eclipse to have generated
code come out looking as I would like it?
|
|
|
Re: generated code - formatting [message #116590 is a reply to message #116521] |
Wed, 01 February 2006 21:46 |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
Set your java formatting options to this setting and the VE will respect
it and generate the code that way.
sjs wrote:
> I used VE to generate some code for a JFrame.
>
> I'm very particular about formatting, and unfortunately I find what seems to
> be the standard for braces in Java annoying and difficult to read.
>
> I want to see code that looks like this:
>
> if (checkCondition())
> {
> doThis();
> doThat();
> }
>
> and I absolutely can't stand to see code that looks like this:
>
> if (checkCondition()) {
> doThis();
> doThat();
> }
>
> So my question is this: Is there an option in Eclipse to have generated
> code come out looking as I would like it?
>
>
--
Thanks,
Rich Kulp
|
|
|
Re: generated code - formatting [message #116597 is a reply to message #116590] |
Wed, 01 February 2006 21:53 |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
To get to the options: Window->Preferences->Java->Code
Style->Formatting. From there you need to show the profile and modify it
on the "braces" tab.
Rich Kulp wrote:
> Set your java formatting options to this setting and the VE will respect
> it and generate the code that way.
>
> sjs wrote:
>
>> I used VE to generate some code for a JFrame.
>>
>> I'm very particular about formatting, and unfortunately I find what
>> seems to be the standard for braces in Java annoying and difficult to
>> read.
>>
>> I want to see code that looks like this:
>>
>> if (checkCondition())
>> {
>> doThis();
>> doThat();
>> }
>>
>> and I absolutely can't stand to see code that looks like this:
>>
>> if (checkCondition()) {
>> doThis();
>> doThat();
>> }
>>
>> So my question is this: Is there an option in Eclipse to have
>> generated code come out looking as I would like it?
>>
>
--
Thanks,
Rich Kulp
|
|
|
Re: generated code - formatting [message #611932 is a reply to message #116521] |
Wed, 01 February 2006 21:46 |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
Set your java formatting options to this setting and the VE will respect
it and generate the code that way.
sjs wrote:
> I used VE to generate some code for a JFrame.
>
> I'm very particular about formatting, and unfortunately I find what seems to
> be the standard for braces in Java annoying and difficult to read.
>
> I want to see code that looks like this:
>
> if (checkCondition())
> {
> doThis();
> doThat();
> }
>
> and I absolutely can't stand to see code that looks like this:
>
> if (checkCondition()) {
> doThis();
> doThat();
> }
>
> So my question is this: Is there an option in Eclipse to have generated
> code come out looking as I would like it?
>
>
--
Thanks,
Rich Kulp
|
|
|
Re: generated code - formatting [message #611933 is a reply to message #116590] |
Wed, 01 February 2006 21:53 |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
To get to the options: Window->Preferences->Java->Code
Style->Formatting. From there you need to show the profile and modify it
on the "braces" tab.
Rich Kulp wrote:
> Set your java formatting options to this setting and the VE will respect
> it and generate the code that way.
>
> sjs wrote:
>
>> I used VE to generate some code for a JFrame.
>>
>> I'm very particular about formatting, and unfortunately I find what
>> seems to be the standard for braces in Java annoying and difficult to
>> read.
>>
>> I want to see code that looks like this:
>>
>> if (checkCondition())
>> {
>> doThis();
>> doThat();
>> }
>>
>> and I absolutely can't stand to see code that looks like this:
>>
>> if (checkCondition()) {
>> doThis();
>> doThat();
>> }
>>
>> So my question is this: Is there an option in Eclipse to have
>> generated code come out looking as I would like it?
>>
>
--
Thanks,
Rich Kulp
|
|
|
Powered by
FUDForum. Page generated in 0.03003 seconds