I am using Eclipse Galileo with a PHP development plugin. I use the same editor at work and at home for my personal projects (at work, I do not use PHP or the PHP plugin, however).
One thing about using this is driving me crazy, though, and although I spent a couple of hours laying out all the options in Window-> Preferences (and also on the Internet), I can't find out how to do this. Maybe someone here can help me?
This is what happens. I have a line of code:
<?php echo "Hello world";
and my cursor is in 'w' in the 'world'.
I pressed the "Home" key on my keyboard. In my key comparisons, he argues that this should lead me to the beginning of the line ("Line Start", to be precise). For me, “beginning” means “there is nothing to the left of this position,” for example, position 1. As in, there are no tabs, spaces, nothing, and if I press the Left Arrow key on the keyboard, I then have to go to the end previous line. You know how your browser works inside a text box, and how Word, Notepad, Excel, and almost every other program work.
Instead, when I press "Home", my cursor moves to position 5, the very beginning of the word "echo". This, if it is not clear, is NOT the beginning of the line. This is the beginning of the content with no spaces in the line, but this is not the way I expect this key to function. If I hit "Home" again, I will get to the REAL beginning of the line - position 1. Hit again and I will return to 5.
Perhaps this is not a question of the Home key at all, but a potentially side effect of the Undo Indent function. I also cannot figure out how to disable this (I saw several posts here that show that this is not possible), and this will often ruin my formatting, which makes me waste time fixing it, since I am definitely about how my code looks when i encode. For example, when I copy / paste a line, the indentation gets spoiled (the inserted lines are inserted where Eclipse thinks it should be, despite all the previous spaces that I copied with the text on the line). This may be due to the operation of the Home key or the concept of Eclipse about what the "beginning" of the line means.
I understand that people who don’t have code like me will have the initial reaction of “changing the input method” or “ignoring corrupted formatting and let Eclipse automatically fix it later” or something similar. It is possible, but it will take a lot of time and actively prevents me from changing the way I work on this one application (in this setting, since it does not do this at work), while everyone else will continue to work, as I expect . Therefore, for me, such a proposal is not a very viable option.
Thank you in advance for your help, help, or help.
PS. If you know how to save Auto-indenting, but turn off Smart Indenting, please let me know.