I have a long time problem and it got me angry, so I will ask here. When I have a long function call in VS Code, it automatically enteres a new line somewhere in the parametres.
I have this on one line:
dict_file = os.path.join(path_converted,
'dictionary_'+filename+'.picklelongtestlongtestlongtestlongtestlongtest')
and it adds newLine behind "(path_converted, 'dictionary_' +"
and the rest is written on the new line with some indention.
I have pretty big monitor, so I do not want to end these lines so early. Could I somehow turn it off in Settings? I am using FormatOnSave and it is pretty anoying.
Thank you for all answers:))
Andrew
There're the following two settings in VS Code:
"editor.wordWrap":
Controls how lines should wrap.
"editor.wordWrapColumn":
Controls the wrapping column of the editor when #editor.wordWrap# is wordWrapColumn or bounded.
So there're two solutions to your question, writing it in Settings.json:
Turn off the wordWrap:
"editor.wordWrap":"off",
Still keep wordWrap on but changing the code's max-length:
"editor.wordWrap": "wordWrapColumn", "editor.wordWrapColumn":130,
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.