Visual Studio Code creates new lines on its own while using Python, I have no idea how to get rid of it, and it drives me mad.
Example:
ap.add_argument("-p", "--path", help="path",
default="C:\Data\file.txt")
I want this to be in one line, it's not exactly long, but Visual Studio Code knows better and just won't let me. It goes back to two lines after saving the file.
CodePudding user response:
Your visual studio has a syntax for python and it uses its syntax to auto save python file into the proper format.
First go to settings and preferences and change the auto save format and not wanting it to be like that (Preferences->Settings->User).
Then make use of word wrap (View->Word Wrap).