Reputation: 335
I need to disable this auto line break my code in Java VS CODE Formatter
It's wrong
Expected:
Upvotes: 0
Views: 1790
Reputation: 9461
This is because you open the wordWrap, but your current code length exceeds the max-length which has been set by default.
There're two solutions to your question, writing it in Settings.json:
1.Turn off the wordWrap:
"editor.wordWrap":"off",
2.Still keep wordWrap on but changing the code's max-length:
"editor.wordWrap": "wordWrapColumn",
"editor.wordWrapColumn":200,
Upvotes: 0