简体   繁体   English

我在 vs 代码中遇到双引号问题

[英]I have a problem with double quote in vs code

When I press Double Quote like this "".当我像这样“”按双引号时。 The Cursor is going to the end automatically, this is natural. Cursor 会自动结束,这很自然。 I want to take the cursor inside of the double-quote automatically when pressing double quote.我想在按下双引号时自动将 cursor 放在双引号内。 Another thing I need to press two times is to appear double quote.我需要按两次的另一件事是出现双引号。 How to fix this in vs code?如何在 vs 代码中解决这个问题?

In VS Code, go to File > Preferences > Settings (or Ctrl+,).在 VS Code 中,go 到文件 > 首选项 > 设置(或 Ctrl+,)。 When the Settings page opens you should already be in the Search box (if not, click inside the Search box).当“设置”页面打开时,您应该已经在“搜索”框中(如果没有,请在“搜索”框中单击)。 Type "quotes" (without the quotes) inside the Search box.在搜索框中键入“引号”(不带引号)。

Check each entry in the resulting list of settings.检查结果设置列表中的每个条目。 You may have to experiment to find which setting needs to be changed.您可能需要尝试找出需要更改的设置。

In particular, look at特别是看

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

Please first go to Keyboard Shortcuts then double click one of random keybinding and press " , it will display an informative text like 1 similar keybindings found click this to find related operation. You can delete or change that to prevent vscode jumping the end of the page or the last active tab when pressing "请先 go 到Keyboard Shortcuts然后双击其中一个随机键绑定并按" ,它将显示一个信息性文本,如1 similar keybindings found单击此查找相关操作。您可以删除或更改它以防止 vscode 跳转页面末尾或按"时的最后一个活动选项卡

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM