Visual Studio 2010 insists on inserting spaces in JavaScript

后端 未结 2 1174
醉话见心
醉话见心 2021-02-20 14:14

Visual Studio 2010 inserts a space between the keyword \"function\" and the following parenthesis. Is it possible to turn this off? i.e.

Visual Studio formats my code l

相关标签:
2条回答
  • 2021-02-20 15:05

    You should find these settings here:

    Tools > Options > Text Editor > JScript > Formatting > Spacing

    0 讨论(0)
  • 2021-02-20 15:06

    VS2010 sp1 introduced a new option: Insert space after function keyword for anonymous functions in Tools > Options > Text Editor > JScript > Formatting > Spacing . You can turn it off to get the desired behavior.

    0 讨论(0)
提交回复
热议问题