r/vscode • u/rawshan91 • Feb 16 '21
To disable the auto line break in the VS code.
Are you struggling to disable the auto line break in vs code from the Prettier extension? If yes this is for you :)
Open vs code => Code => Preferences => Settings => In the search field type: Prettier
Now from the provided Prettier settings, choose the Prettier: Print Width

And Instead of 80, you can make it a big number. Eg: 999999
Now you don't have to worry about the line break.
Enjoy!!!
0
Upvotes
1
u/bitlockholmes Feb 18 '21
"what do you mean breaking up lines translates to different machine code?"
3
u/[deleted] Feb 17 '21
Or, you can use a prettier configuration file and check it in with your code to enforce good habits across the team.
2
u/[deleted] Feb 17 '21
Yeah, cool. Thank babby jeebus we enforce prettier rules on precommit with husky.