[android-developers] Re: Disabling Java formatting in the Eclipse editor

2010-07-22 Thread DanH
One thing I had to do on my laptop is turn the sensitivity of the
touch pad way down, since my hands waving over it (not touching) while
typing would be interpreted as mouse presses, highlight whole sections
of code, and delete them on the next keystroke.  Didn't have the
problem with any other editors.

On Jul 21, 10:10 pm, A Curious Developer imdb...@yahoo.com wrote:
 Grrr .. I had a few more files fall victim to the mystery formatting,
 probably caused by my bunglefingeredness.

 I started learning how to do an Eclipse plug-in, since if it took me a
 few hours now it would probably save me many more hours later. I was
 actually considering switching to the VisualStudio editor - that is
 how bad it was.

 However, I stumbled across this gem: Window / Customize Perspective /
 Menu Visibility. That lets you disable menu items .. so that just
 might solve my problem.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Disabling Java formatting in the Eclipse editor

2010-07-21 Thread A Curious Developer
Grrr .. I had a few more files fall victim to the mystery formatting,
probably caused by my bunglefingeredness.

I started learning how to do an Eclipse plug-in, since if it took me a
few hours now it would probably save me many more hours later. I was
actually considering switching to the VisualStudio editor - that is
how bad it was.

However, I stumbled across this gem: Window / Customize Perspective /
Menu Visibility. That lets you disable menu items .. so that just
might solve my problem.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Disabling Java formatting in the Eclipse editor

2010-07-18 Thread Stephen Lebed
If you have your own style of formatting, why not see if you can
create your own custom format in settings?  There were things I didn't
like with the default java formatting, so I created my own custom
setup.

On Jul 17, 6:32 pm, DonFrench dcfre...@gmail.com wrote:
 Out of curiosity, what do you hate about the Java formatting.  I
 rather like it myself.

 On Jul 17, 3:23 pm, A Curious Developer imdb...@yahoo.com wrote:



  Is there a (simple) way to completely and utterly disable all Java
  formatting in the Eclipse editor?

  That is an Eclipse question, but I appreciate your indulgence because
  this problem is slowly driving me insane. I am spending a lot of time
  fixing code to make it look good again after it gets mangled by the
  automatic formatting. I thought I had removed all formatting keyboard
  shortcuts, but I missed something because my code keeps getting
  changed. I suspect the culprit to be the Source\Format menu option
  because that can be triggered by Alt-S-F which is very close to Alt-F-
  S, the File/Save command. So a little finger slip and ... bam! ...
  code mangled. Unfortunately, the mangling is not always done where I
  am looking (since it is applied to the entire file), so I don't always
  know to undo it.

  Is it possible to disable or remove a menu item?

  Although I have set up the formatting rules to do as little damage as
  possible, the rules are not flexible enough to cover everything. My
  last resort will be to change the Eclipse code itself, but ... blech.

  Thanks for any tips.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Disabling Java formatting in the Eclipse editor

2010-07-17 Thread A Curious Developer
 Look in settings...  I believe you can disable it or at least change its key
 binding.

Thanks, I have got rid of most of them, but the menu shortcuts are
still there and I don't know how to be rid of them.

 Also  Ctrl+S for saving ;)

I have been using that, and it seems to help (reduce the number of
mysterious reformattings, I think), but old habits die hard. ;)

Thanks for the suggestions.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Disabling Java formatting in the Eclipse editor

2010-07-17 Thread DanH
You might note that there are several different versions of Eclipse
you can use, and they may have different formatting policies.  I know
the version I got with Websphere a year ago was far worse in this
regard than the vanilla version I downloaded for use with Android.

On Jul 17, 5:23 pm, A Curious Developer imdb...@yahoo.com wrote:
 Is there a (simple) way to completely and utterly disable all Java
 formatting in the Eclipse editor?

 That is an Eclipse question, but I appreciate your indulgence because
 this problem is slowly driving me insane. I am spending a lot of time
 fixing code to make it look good again after it gets mangled by the
 automatic formatting. I thought I had removed all formatting keyboard
 shortcuts, but I missed something because my code keeps getting
 changed. I suspect the culprit to be the Source\Format menu option
 because that can be triggered by Alt-S-F which is very close to Alt-F-
 S, the File/Save command. So a little finger slip and ... bam! ...
 code mangled. Unfortunately, the mangling is not always done where I
 am looking (since it is applied to the entire file), so I don't always
 know to undo it.

 Is it possible to disable or remove a menu item?

 Although I have set up the formatting rules to do as little damage as
 possible, the rules are not flexible enough to cover everything. My
 last resort will be to change the Eclipse code itself, but ... blech.

 Thanks for any tips.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Disabling Java formatting in the Eclipse editor

2010-07-17 Thread DonFrench
Out of curiosity, what do you hate about the Java formatting.  I
rather like it myself.

On Jul 17, 3:23 pm, A Curious Developer imdb...@yahoo.com wrote:
 Is there a (simple) way to completely and utterly disable all Java
 formatting in the Eclipse editor?

 That is an Eclipse question, but I appreciate your indulgence because
 this problem is slowly driving me insane. I am spending a lot of time
 fixing code to make it look good again after it gets mangled by the
 automatic formatting. I thought I had removed all formatting keyboard
 shortcuts, but I missed something because my code keeps getting
 changed. I suspect the culprit to be the Source\Format menu option
 because that can be triggered by Alt-S-F which is very close to Alt-F-
 S, the File/Save command. So a little finger slip and ... bam! ...
 code mangled. Unfortunately, the mangling is not always done where I
 am looking (since it is applied to the entire file), so I don't always
 know to undo it.

 Is it possible to disable or remove a menu item?

 Although I have set up the formatting rules to do as little damage as
 possible, the rules are not flexible enough to cover everything. My
 last resort will be to change the Eclipse code itself, but ... blech.

 Thanks for any tips.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en