I had the opposite problem with anonymous functions. We use a prettier extension. Auto-correction inserts a space before the parenthesis. And then he complains more about it.
var anonfunc = function() {
There is a similar code option that solves my problem:
"javascript.format.insertSpaceAfterFunctionKeywordForAnonymousFunctions": false
By default, this is true
. It took me a while until I was tired of correcting auto-correction.
source share