Howto prevent eclipse from line wrapping in XML and HTML files?

后端 未结 3 1088
南旧
南旧 2020-12-17 08:26

Is it possible to completely stop Eclipse from line wrapping XML and HTML files? It is easy to do this i.e. for java files, but I couldn\'t find similar settings for XML and

3条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-17 09:09

    Yes, the settings for XML formatting are in the IDE-wide preferences tab and apparently they cannot be set on a per-project basis.

    I want to point out that what is really annoying is the wrapping of "free text" between elements like in:

    some free text

    That's really an inconvenience when dealing with the pattern format in logback.xml files, for instance.

    I just found out that Eclipse won't format that bit if I enclose the text between . For instance:

    Just wanted to share that.

提交回复
热议问题