Visual Studio Code 禁用自动引用 [英] Visual Studio Code disable auto-quote

查看:36
本文介绍了Visual Studio Code 禁用自动引用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何禁用自动引用功能?

How do I disable the auto-quotes feature?

当我按下 ' 或 " 键时,我永远不希望它在任何地方自动插入另一个.无论他们做得多么聪明,它都会让我觉得不可预测"并分散我对我的注意力'我正在尝试做.

When I hit the ' or " key, I do not EVER want it to automatically insert another one anywhere. No matter how smart they make it, it just comes across to me as "unpredictable" and distracts me from what I'm trying to do.

我输入超过 100 wpm,我真的不需要帮助按下 ' 或 " 键.

I type over 100 wpm, I really don't need help hitting the ' or " key.

我尝试了以下设置,但都没有禁用这种不良行为:

I have tried the following settings, but none of them have disabled this undesired behavior:

{
    "editor.autoClosingBrackets": false,
    "editor.wordWrap": "off",
    "html.autoClosingTags": false,
    "editor.formatOnType": false,
    "editor.suggestOnTriggerCharacters": false,
    "editor.acceptSuggestionOnEnter": "off",
}

推荐答案

来自 vscode 1.27.0

"editor.autoClosingQuotes": "never",
"editor.autoSurround": "never",// When the word is selected

我想你可以像这样输入"它们(keybindings.json):

I guess you can "type" them instead like this (keybindings.json):

{
    "key": "'",
    "command": "editor.action.insertSnippet",
    "args": {
        "snippet": "'"
    },
    "when": "editorTextFocus && !editorReadonly"
},

这篇关于Visual Studio Code 禁用自动引用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆