Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Ctrl-Shift-F Is Unpredictable
Ctrl-Shift-F Is Unpredictable [message #172284] Sun, 24 September 2006 01:51 Go to next message
Eclipse UserFriend
Originally posted by: hal.thresholddigital.com

I've asked similar questions with no responses. I'm using Eclipse 3.2 on
Ubuntu Linux (latest version, Dapper).

I found out, through this group, that I can edit the formatting specs
through Window->Preferences->Code Style->Formatting. I created my own
settings and changed a few things, but I've noticed when I hit ctrl-shift-F
to reformat, I cannot count on the code being formatted to my specs. At
first it worked fine, but then it stopped working. I specified to leave
blank lines before each method declaration, yet that often doesn't happen.
I also specified that I did not want comments indented, but my comments are
always indented.

When I created my own settings, they worked until I started fiddling with
the comment settings. Somewhere after that, my own settings stopped
working. Sometimes, if I use a built in preferences, it is formatted, but
not always.

Is there some other related setting I need to adjust?

Hal
Re: Ctrl-Shift-F Is Unpredictable [message #172292 is a reply to message #172284] Sun, 24 September 2006 03:27 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: weconsul.ptd.net

Hal Vaughan wrote:
> I've asked similar questions with no responses. I'm using Eclipse 3.2 on
> Ubuntu Linux (latest version, Dapper).
>
> I found out, through this group, that I can edit the formatting specs
> through Window->Preferences->Code Style->Formatting. I created my own
> settings and changed a few things, but I've noticed when I hit ctrl-shift-F
> to reformat, I cannot count on the code being formatted to my specs. At
> first it worked fine, but then it stopped working. I specified to leave
> blank lines before each method declaration, yet that often doesn't happen.
> I also specified that I did not want comments indented, but my comments are
> always indented.
>
> When I created my own settings, they worked until I started fiddling with
> the comment settings. Somewhere after that, my own settings stopped
> working. Sometimes, if I use a built in preferences, it is formatted, but
> not always.
>
> Is there some other related setting I need to adjust?
>
> Hal

So I am assuming you mean:

Window->Preferences->Java->Code Style->Formatting

The only thing I can think of is that the "Style profile", you created,
is not selected now. You normally want to create a new profile and save
any changes to it's own profile. This way you can go back and use the
existing one. Look to see if the profile you selected is being used.

--
Thanks in Advance...
IchBin, Pocono Lake, Pa, USA http://weconsultants.phpnet.us
____________________________________________________________ ______________

'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)
Re: Ctrl-Shift-F Is Unpredictable [message #172299 is a reply to message #172292] Sun, 24 September 2006 04:29 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: hal.thresholddigital.com

IchBin wrote:

> Hal Vaughan wrote:
>> I've asked similar questions with no responses. I'm using Eclipse 3.2 on
>> Ubuntu Linux (latest version, Dapper).
>>
>> I found out, through this group, that I can edit the formatting specs
>> through Window->Preferences->Code Style->Formatting. I created my own
>> settings and changed a few things, but I've noticed when I hit
>> ctrl-shift-F
>> to reformat, I cannot count on the code being formatted to my specs. At
>> first it worked fine, but then it stopped working. I specified to leave
>> blank lines before each method declaration, yet that often doesn't
>> happen. I also specified that I did not want comments indented, but my
>> comments are always indented.
>>
>> When I created my own settings, they worked until I started fiddling with
>> the comment settings. Somewhere after that, my own settings stopped
>> working. Sometimes, if I use a built in preferences, it is formatted,
>> but not always.
>>
>> Is there some other related setting I need to adjust?
>>
>> Hal
>
> So I am assuming you mean:
>
> Window->Preferences->Java->Code Style->Formatting

Oops. Yes.

> The only thing I can think of is that the "Style profile", you created,
> is not selected now. You normally want to create a new profile and save
> any changes to it's own profile. This way you can go back and use the
> existing one. Look to see if the profile you selected is being used.

Yes, I've made sure my profile was selected. I experimented with other
profiles that were included and there are still times when ctrl-shift-f
does not do what it should. I've also had a few other glitches. For
example, when I highlight a section of text and copy with ctrl-c, then
paste it, often the full highlighted section is not pasted in. There seems
to be an issue with the cursor column. I'm thinking maybe I should just
uninstall and reinstall.

Could this be an issue with using the wrong editor? Aren't there a few
different editors included and could it be I'm using the wrong one?

Hal
Re: Ctrl-Shift-F Is Unpredictable [message #172309 is a reply to message #172299] Sun, 24 September 2006 06:14 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: weconsul.ptd.net

Hal Vaughan wrote:
> IchBin wrote:
>
>> Hal Vaughan wrote:
>>> I've asked similar questions with no responses. I'm using Eclipse 3.2 on
>>> Ubuntu Linux (latest version, Dapper).
>>>
>>> I found out, through this group, that I can edit the formatting specs
>>> through Window->Preferences->Code Style->Formatting. I created my own
>>> settings and changed a few things, but I've noticed when I hit
>>> ctrl-shift-F
>>> to reformat, I cannot count on the code being formatted to my specs. At
>>> first it worked fine, but then it stopped working. I specified to leave
>>> blank lines before each method declaration, yet that often doesn't
>>> happen. I also specified that I did not want comments indented, but my
>>> comments are always indented.
>>>
>>> When I created my own settings, they worked until I started fiddling with
>>> the comment settings. Somewhere after that, my own settings stopped
>>> working. Sometimes, if I use a built in preferences, it is formatted,
>>> but not always.
>>>
>>> Is there some other related setting I need to adjust?
>>>
>>> Hal
>> So I am assuming you mean:
>>
>> Window->Preferences->Java->Code Style->Formatting
>
> Oops. Yes.
>
>> The only thing I can think of is that the "Style profile", you created,
>> is not selected now. You normally want to create a new profile and save
>> any changes to it's own profile. This way you can go back and use the
>> existing one. Look to see if the profile you selected is being used.
>
> Yes, I've made sure my profile was selected. I experimented with other
> profiles that were included and there are still times when ctrl-shift-f
> does not do what it should. I've also had a few other glitches. For
> example, when I highlight a section of text and copy with ctrl-c, then
> paste it, often the full highlighted section is not pasted in. There seems
> to be an issue with the cursor column. I'm thinking maybe I should just
> uninstall and reinstall.
>
> Could this be an issue with using the wrong editor? Aren't there a few
> different editors included and could it be I'm using the wrong one?
>
> Hal
>

As far as the mnemonic key strokes. I do not use them. I use the mouse
and have not had any problems with 'Format' or 'Format Element'.

I have never ran in to the problems you are having. I am running on
Windoze SP XP 2, Eclipse 3.2. Besides the basics I have the C\C++ and
PHP plugins.

As far as a wrong editor. The system is not going to screw that up. User
wise.. it should work the same across editors. I mean "Copy, Cut and
Paste" are basic functions that all editor use.

You may want to rebuild a fresh Eclipse. Delete the current Eclipse and
start anew. Guess it depends on how much you have to rebuild. The number
of plugins.

Just remember that any time you add a new plugin or update a plugin exit
Eclipse and restart it with the clean option.

Example: Eclipse -clean

--
Thanks in Advance...
IchBin, Pocono Lake, Pa, USA http://weconsultants.phpnet.us
____________________________________________________________ ______________

'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)
Re: Ctrl-Shift-F Is Unpredictable [message #172315 is a reply to message #172309] Sun, 24 September 2006 06:44 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: hal.thresholddigital.com

IchBin wrote:

> Hal Vaughan wrote:
>> IchBin wrote:
>>
>>> Hal Vaughan wrote:
>>>> I've asked similar questions with no responses. I'm using Eclipse 3.2
>>>> on Ubuntu Linux (latest version, Dapper).
>>>>
>>>> I found out, through this group, that I can edit the formatting specs
>>>> through Window->Preferences->Code Style->Formatting. I created my own
>>>> settings and changed a few things, but I've noticed when I hit
>>>> ctrl-shift-F
>>>> to reformat, I cannot count on the code being formatted to my specs.
>>>> At
>>>> first it worked fine, but then it stopped working. I specified to
>>>> leave blank lines before each method declaration, yet that often
>>>> doesn't happen. I also specified that I did not want comments indented,
>>>> but my comments are always indented.
>>>>
>>>> When I created my own settings, they worked until I started fiddling
>>>> with
>>>> the comment settings. Somewhere after that, my own settings stopped
>>>> working. Sometimes, if I use a built in preferences, it is formatted,
>>>> but not always.
>>>>
>>>> Is there some other related setting I need to adjust?
>>>>
>>>> Hal
>>> So I am assuming you mean:
>>>
>>> Window->Preferences->Java->Code Style->Formatting
>>
>> Oops. Yes.
>>
>>> The only thing I can think of is that the "Style profile", you created,
>>> is not selected now. You normally want to create a new profile and save
>>> any changes to it's own profile. This way you can go back and use the
>>> existing one. Look to see if the profile you selected is being used.
>>
>> Yes, I've made sure my profile was selected. I experimented with other
>> profiles that were included and there are still times when ctrl-shift-f
>> does not do what it should. I've also had a few other glitches. For
>> example, when I highlight a section of text and copy with ctrl-c, then
>> paste it, often the full highlighted section is not pasted in. There
>> seems
>> to be an issue with the cursor column. I'm thinking maybe I should just
>> uninstall and reinstall.
>>
>> Could this be an issue with using the wrong editor? Aren't there a few
>> different editors included and could it be I'm using the wrong one?
>>
>> Hal
>>
>
> As far as the mnemonic key strokes. I do not use them. I use the mouse
> and have not had any problems with 'Format' or 'Format Element'.
>
> I have never ran in to the problems you are having. I am running on
> Windoze SP XP 2, Eclipse 3.2. Besides the basics I have the C\C++ and
> PHP plugins.
>
> As far as a wrong editor. The system is not going to screw that up. User
> wise.. it should work the same across editors. I mean "Copy, Cut and
> Paste" are basic functions that all editor use.
>
> You may want to rebuild a fresh Eclipse. Delete the current Eclipse and
> start anew. Guess it depends on how much you have to rebuild. The number
> of plugins.

That's why I haven't gone ahead and done that yet.

> Just remember that any time you add a new plugin or update a plugin exit
> Eclipse and restart it with the clean option.
>
> Example: Eclipse -clean

I ran Eclipse from the command line just now to try that, and it crashed, so
I clicked on the icon (yes, I know -- using icons and a GUI is a totally an
ungeek thing to do!) and it ran. When I get time, I'll rebuild it from
scratch. At least I know my settings will state intact in my /home/hal
directory in the workspace subdirectory.

Hal
Re: Ctrl-Shift-F Is Unpredictable [message #172401 is a reply to message #172299] Mon, 25 September 2006 07:31 Go to previous message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
Hal Vaughan wrote:

>IchBin wrote:
>
>
>
>>Hal Vaughan wrote:
>>
>>
>>>I've asked similar questions with no responses. I'm using Eclipse 3.2 on
>>>Ubuntu Linux (latest version, Dapper).
>>>
>>>I found out, through this group, that I can edit the formatting specs
>>>through Window->Preferences->Code Style->Formatting. I created my own
>>>settings and changed a few things, but I've noticed when I hit
>>>ctrl-shift-F
>>>to reformat, I cannot count on the code being formatted to my specs. At
>>>first it worked fine, but then it stopped working. I specified to leave
>>>blank lines before each method declaration, yet that often doesn't
>>>happen. I also specified that I did not want comments indented, but my
>>>comments are always indented.
>>>
>>>When I created my own settings, they worked until I started fiddling with
>>>the comment settings. Somewhere after that, my own settings stopped
>>>working. Sometimes, if I use a built in preferences, it is formatted,
>>>but not always.
>>>
>>>Is there some other related setting I need to adjust?
>>>
>>>Hal
>>>
>>>
>>So I am assuming you mean:
>>
>>Window->Preferences->Java->Code Style->Formatting
>>
>>
>
>Oops. Yes.
>
>
>
>>The only thing I can think of is that the "Style profile", you created,
>>is not selected now. You normally want to create a new profile and save
>>any changes to it's own profile. This way you can go back and use the
>>existing one. Look to see if the profile you selected is being used.
>>
>>
>
>Yes, I've made sure my profile was selected. I experimented with other
>profiles that were included and there are still times when ctrl-shift-f
>does not do what it should. I've also had a few other glitches. For
>example, when I highlight a section of text and copy with ctrl-c, then
>paste it, often the full highlighted section is not pasted in. There seems
>to be an issue with the cursor column. I'm thinking maybe I should just
>uninstall and reinstall.
>
>Could this be an issue with using the wrong editor? Aren't there a few
>different editors included and could it be I'm using the wrong one?
>
>
Ctrl+Shift+F and the Java formatter profiles apply just to the Java
editor. If you use another editor you might call some totally different
command with Ctrl+Shift+F. If you are sure you use the Java editor then
simply file a bug report against JDT Core with steps to reproduce the
problem (and of course attach your profile).

Dani

>Hal
>
>
>
Previous Topic:About Eclipse Sysdeo Tomcat Plugin v 3.1
Next Topic:Developing JSP using Eclipse
Goto Forum:
  


Current Time: Sun Jun 30 00:06:14 GMT 2024

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

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

Back to the top