首页 文章

自动关闭单引号和双引号vscode

提问于
浏览
0

我的vscode不会自动关闭单引号和双引号 . 我已禁用所有扩展程序,但问题仍然存在 .

vscodeVersion 1.15.0(1.15.0)MAC osx:版本10.12.6(16G29)

1 回答

  • 1

    仅供参考:这是一个错误/功能,因为双引号在光标右侧没有任何内容时自动关闭 . 但是,当光标右侧有某些内容时,您只能得到一个引号 .

    <h1 className="|> <== the closing > on the h1 tag prevents the auto-close.
    <h1 className="|" > <== the space to the right allows auto-close to work.
    

    我有一个类似的问题,遇到了描述它的this link .

相关问题