How do you enable word-wrap by default in Eclipse?

前端 未结 2 621
栀梦
栀梦 2020-12-22 21:33

Simple question: how do you enable word-wrap by default in Eclipse? I looked at this plugin but it only goes up to Luna. In addition, this plugin is a separate text editor a

相关标签:
2条回答
  • 2020-12-22 21:47

    Word wrap is available in Eclipse Neon IDE: https://www.eclipse.org/neon/noteworthy/#_word_wrap_in_text_editors.

    Just consider using the latest version.

    Keyboard shortcut: Alt+Shift+Y

    Or button:

    Or menu Window > Editor > Toggle Word Wrap:

    0 讨论(0)
  • 2020-12-22 21:48

    As pointed out by @KrisWebDev in this answer, Eclipse supports soft line/word wrapping as of Eclipse Neon but the GUI to control this setting does not exist yet. There should be a global settings to enable soft word wrapping by default in any text editor in Window > Preferences > General > Editors > Text Editors > Enable Wordwrap and it is not there.

    Instead, you have to manually edit the org.eclipse.ui.editors.prefs file (.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.editors.prefs) in your eclipse workspace. There, you can add the settings wordwrap.enabled=true.

    0 讨论(0)
提交回复
热议问题