auto tabbing ... [message #741771] |
Wed, 19 October 2011 18:08  |
Eclipse User |
|
|
|
Hi.
I'm using:
Eclipse IDE for Java Developers
Version: Helios Service Release 2
Build id: 20110218-0911
I have a .java file I'm editing.
Some of the lines are tab indented for readability.
If I return at the end of one of these lines a new line is created as expected, however, instead of the cursor being at the start of the new line, it moves to the same initial tab stop as the previous indented line.
Can someone please tell me how to change this.
I have been through the Preferences dialogue several times and don't see anything useful.
Best wishes.
|
|
|
|
|
|
Re: auto tabbing ... [message #742409 is a reply to message #742058] |
Thu, 20 October 2011 09:18   |
Eclipse User |
|
|
|
Deepak Azad wrote on Thu, 20 October 2011 02:10
You cannot change that.
I'm new here but I don't believe that's strictly correct.
JDT-FAQ - Eclipsepedia wrote
Get the code via anonymous access, do your work and then pass the work on to a committer (in a patch attached to a bug report) for inclusion in the repository.
wiki.eclipse.org/CVS_Howto#Anonymous_CVS
Deepak Azad wrote on Thu, 20 October 2011 02:10I ... wonder why you ... want to change that.
I'm not nebulously poking around for information.
Regardless, wonder no more ...
I like to use simple tools that allow me to develop strong neural paths viz-a-viz visualizing layout of code while writing it and having a concomitant muscle memory for achieving that without any omission.
A program forcing me not to do this is contrary to that development, i.e. interrupts me from moving on to higher order thinking, and significantly, it's detrimental to me using more native platforms.
In other words, it's going to make Eclipse use unnecessarily burdensome and/or error prone and may add unnecessary difficulty to using simpler tools.
You might not use simple tools often or at all.
Maybe you do but haven't considered this.
Nevertheless, that should be easy for you to understand and perhaps sympathize with.
Further, regardless of the fact that at the moment I don't have a problem with the Eclipse tab positions per se (withstanding the previously mentioned), there may come a time where I wish to use a particular layout under a particular circumstance for a particular reason.
It seems reasonable to me that I should be able to type what I like without hindrance.
Having a program adding to what I type, without providing me an opportunity, at a minimum, to change that behaviour to "do not add anything extra to what I do", is not a sane fallback.
That's an extremely common axiom.
I have to assume you haven't encountered it elsewhere, nevertheless, I suspect it will be simple for you to apply it here.
Best wishes.
[Updated on: Thu, 20 October 2011 09:45] by Moderator
|
|
|
|
Re: auto tabbing ... [message #742732 is a reply to message #742457] |
Thu, 20 October 2011 15:28   |
Eclipse User |
|
|
|
Deepak Azad wrote on Thu, 20 October 2011 10:07You are always welcome to open a bug and provide a patch, especially if
you feel this strongly about it!
Absolutely.
Deepak Azad wrote on Thu, 20 October 2011 10:07Pressing 'enter' at the end of a line places the caret on the new line
at the same column/alignment as the previous line. How often do you do
something different while writing code in any language?
The first source file I stumbled across.
www.openbsd.org/cgi-bin/cvsweb/src/bin/cat/cat.c?rev=1.20;content-type=text%2Fplain
It looks like every closing brace, every if else, cases in the switch in main, dozens of others I can't be bothered documenting in the other functions on that page, the ones I'm too tired to notice, etcetera ...
It's incredibly common.
That's beside my points, though.
Thank you for being polite about this.
Best wishes.
Sorry for the non-clickable links, I'm not allowed to hyperlink ... yet.
[Updated on: Thu, 20 October 2011 15:59] by Moderator
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.09900 seconds