void () { // Inspired by IDEA-55782 getSettings().RIGHT_MARGIN = 50; getSettings().WRAP_LONG_LINES = true; doTextTest( """ class TestClass { // Single line comment that is long enough to exceed right margin /* Multi line comment that is long enough to exceed right margin*/ /** Javadoc comment that is long enough to exceed right margin */ public String s = "this is a string that is long enough to be wrapped" }""", """ class TestClass { // Single line comment that is long enough\s // to exceed right margin /* Multi line comment that is long enough\s to exceed right margin*/ /** * Javadoc comment that is long enough to\s * exceed right margin */ public String s = "this is a string that is" + " long enough to be wrapped" }""" ); }