Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 97400

How to turn off or change automatic linebreak when saving a file in Visuel Studio Code?

$
0
0

Heres the line I'd like to demonstrate my problem with:

return heroes.length > 0 ? Math.max(...heroes.map(hero => hero.id)) + 1: 11;

At least this is the way I'd like it. Instead when I save the file, it gets turned into this:

return heroes.length > 0
? Math.max(...heroes.map(hero => hero.id)) + 1
: 11;

The extensions I have installed, are:

extension list

In the essentials package:

essential package

The settings that I have tried to modify (in their current form):

"editor.wordWrap": "off",
"editor.wordWrapColumn": 500,
"editor.minimap.maxColumn": 500,
"html.format.wrapLineLength": 500,
"prettier.printWidth": 500,

I know that some of these fairly obviously have nothing to do with it, I just desperately tried everything that seemed remotely related.

I suspect it might be the ESLINT extension that does this (which is included in the angular essentials extension package), I just couldn't find a way to disable it or extend it to more characters.


Viewing all articles
Browse latest Browse all 97400

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>