title: How do I stop visual studio inserting a space between function definition and immediate call?
body: <p>I am using the visual studio JSLint plugin to keep my javascript in order, which seems to work really well apart from this one problem. </p>
  
  <p>If I type in</p>
  
  <pre><code>x = (function () {
  }())
  </code></pre>
  
  <p>And then put the semicolon on the end, Visual studio corrects it to:</p>
  
  <pre><code>x = (function () {
  } ());
  </code></pre>
  
  <p>And then JSLint complains <code>JS Lint: Unexpected space between '}' and '('.</code></p>
  
  <p>Obviously this is fixable by removing the space, but visual studio is very persistent in putting the space back. Putting a semicolon anywhere inside the function, which is most of the file, will cause VS to put the space back. This is starting to get annoying.</p>
  
  <p>I've tried mucking about with the visual studio Javascript editor settings ('insert space after...'), but can't seem to stop it doing this.</p>
  
  <p>Another way this could be expressed is </p>
  
  <pre><code>x = (function () {
  })();
  </code></pre>
  
  <p>Which VS leaves alone, but JSLint says <code>JS Lint: Move the invocation into the parens that contain the function.</code> So no dice there.</p>
  
  <p>Any suggestions? I know I can turn bits of JSLint off, even just around this last line of the file, but that's going to look messy, I'd like to do a bit better.</p>