【问题标题】:I have a problem with double quote in vs code我在 vs 代码中遇到双引号问题
【发布时间】:2021-12-30 23:09:46
【问题描述】:

当我像这样“”按双引号时。光标会自动结束,这是很自然的。我想在按双引号时自动将光标移到双引号内。我需要按两次的另一件事是出现双引号。如何在 vs 代码中解决这个问题?

【问题讨论】:

  • 请提供足够的代码,以便其他人更好地理解或重现问题。

标签: javascript html reactjs visual-studio visual-studio-code


【解决方案1】:

在 VS Code 中,转到文件 > 首选项 > 设置(或 Ctrl+,)。当“设置”页面打开时,您应该已经在“搜索”框中(如果没有,请在“搜索”框中单击)。在搜索框中输入“引号”(不带引号)。

检查结果设置列表中的每个条目。您可能需要尝试找出需要更改的设置。

特别是看

Editor: Auto Closing Quotes
Controls whether the editor should automatically close quotes after the user adds an opening quote.

【讨论】:

    猜你喜欢
    • 2021-08-26
    • 2021-03-16
    • 2021-05-03
    • 1970-01-01
    • 1970-01-01
    • 2021-05-19
    • 1970-01-01
    • 2013-07-12
    • 1970-01-01
    相关资源
    最近更新 更多