Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » spaces/tabs settings not working
spaces/tabs settings not working [message #1809422] Tue, 16 July 2019 05:05 Go to next message
Sergei Karimov is currently offline Sergei KarimovFriend
Messages: 17
Registered: July 2009
Junior Member
Hello!
while editing xml file Tab key sometimes produces wrong number of spaces, 4 instead of 2.
Steps to reproduce:
1. Window/Preferences Xml/Xml files/Editor
check "Indent using spaces"
Indentation size=2
2. Open any xml file.
fill first line, e.g. <root>
press Enter
press Tab
Result: 4 spaces inserted instead of 2.

Similar error if set "Indent using tabs", indentation size=1.
This time also 4 spaces inserted instead of 1 tab.

BUT autoformat (ctrl+shift+F) works correct in both cases. Replaces with 2 spaces/1 tab.

This is very annoying and breaks reflex typing. Reverts text editing to 30 years ago to DOS text editor, when you have to indent manually.


-- Configuration Details --
Product: Eclipse IDE 4.12.0.20190614-1200 (org.eclipse.epp.package.jee.product)Installed Features:
org.eclipse.wst.xml_ui.feature 3.14.0.v201905291408
Re: spaces/tabs settings not working [message #1809425 is a reply to message #1809422] Tue, 16 July 2019 05:24 Go to previous message
Sergei Karimov is currently offline Sergei KarimovFriend
Messages: 17
Registered: July 2009
Junior Member
I'm not sure what caused this problem, but after recreating workspace from scratch this bug is not reproduced anymore
Previous Topic:Cannot find Main class from test classpath
Next Topic:Error in reinstalling Eclipse
Goto Forum:
  


Current Time: Wed Apr 24 19:59:16 GMT 2024

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

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

Back to the top