Mar*_*ero 4 macos visual-studio-code
我的 vscode 不会自动关闭单引号和双引号。我已经禁用了所有扩展,但问题仍然存在。
vscodeVersion 1.15.0 (1.15.0)
MAC osx:版本 10.12.6 (16G29)
小智 10
值得注意的是,vscode 有一个单独的编辑器设置,用于从括号中自动关闭引号。如果您有:"editor.autoClosingQuotes": "never"在您的设置中,那么 vscode 将永远不会关闭引号。另一方面,如果你有"editor.autoClosingQuotes": "always",那么它总是会添加额外的结束语。
仅供参考:这是一个错误/功能,因为当光标右侧没有任何内容时,双引号会自动关闭。但是,当光标右侧有内容时,您只能得到一个报价。
<h1 className="|> <== the closing > on the h1 tag prevents the auto-close.
<h1 className="|" > <== the space to the right allows auto-close to work.
Run Code Online (Sandbox Code Playgroud)
我遇到了类似的问题,并发现了描述它的链接。
| 归档时间: |
|
| 查看次数: |
6202 次 |
| 最近记录: |