Community
Participate
Working Groups
In the xml, html and all WTP provided editors the Home and End key must behave like the Java editor i.e. Home key takes you to the first non-whitespace char End key takes you to the last non-whitespace char. I am using WTP 1.0 M8 cheers
Thanks, I persoanlly hate that behavior :) ... but you're right, we should be consistent.
Come on, this is still an issue in 1.5 and must be an incredibly easy fix. It's also very annoying, which suggests that the priority of this bug is too low. Current assignee (Amy) can you please consider bumping this up in priority? To be clear the Home key would jump to the first non-whitespace character or to the first column if it was already there.
Opened bug 147941 on the Text editor to see if they will move this functionality to the text editor since it is practically there already. If they don't do it soon enough, we'll just add this to our editors. I'd prefer Text editor add it though, just to reduce preference clutter.
According to WTP 1.5.x UI policy (http://wiki.eclipse.org/index.php/WTP_Release_1.5.x_Maintenance_Plan_and_Policies) UI changes need to be kept to a minimum, and adding the smart home/end functionality would be a UI change (adding to preference page) So this bug will not be fixed in 1.5.x. However, from the comments in bug 147941, it sounds like the Text editor component may be fixing this for Eclipse 3.3. If this is the case, then this will be fixed for WTP 2.0. In the meantime, there is a trick to enable smart home/end under the covers for all text editors. Add the following line: AbstractTextEditor.Navigation.SmartHomeEnd=true to <your workspace directory>/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.editors.prefs Please note this is just an official trick, but it should get the job done, and when the base adds UI to surface this preference, it should work seamlessly.
Sorry, I meant "unofficial trick"
The base text editor fixed bug 147941 and added this preference General->Editors->Text Editors->"Smart caret positioning at line start and end" and sse editors obey this preference. It was added for Eclipse 3.3M3, so this will be in WTP 2.0M3.
*** Bug 109681 has been marked as a duplicate of this bug. ***
verified in wtp2.0 M6 200703150647