VSCode自动格式化在我React类的类型规范中添加了问号间的空格。
我认为这只发生在新版本的VSCode 2019年3月(1.33版),但我可能是错的。
我在VSCode中使用reactjs + flowtype堆栈,格式化时会出现以下更改。
class IdPRPConfigC extends React.Component<{file: ?string}, {}> {}
变成
class IdPRPConfigC extends React.Component<{file: ? string}, {}> {
请注意,在可选的标志符号(?)后插入了一个空格。