' 在 Sublime Text 4 中被自动替换为 ‹›

' 在 Sublime Text 4 中被自动替换为 ‹›

使用时Sublime Text 4使用 .tex 文档中的 LaTeXtools(这不会发生在其他文件格式中,例如 .txt),当按下“'”以显示撇号时,我得到的是“‹›”。我假设这是一个键绑定,所以我搜索了用户键绑定,但找不到任何相关内容。我认为问题可能出在这里:

    // overlay specifications (Tobias Schmidt)
    // FIXME: the scope for the four following should actually be text.tex.latex.beamer, but for some reason this does not seem to work
    { "keys": ["<"], "command": "insert_snippet", "args": {"contents": "<${1:+-}>$0"}, 
    "context":  
        [
            {"key": "selector", "operator": "equal", "operand": "text.tex.latex - (string.other.math, meta.environment.math)"},
            { "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
            { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
            { "key": "preceding_text", "operator": "regex_contains", "operand": "\\\\(?:item|only|textbf|color|onslide|only|uncover|visible|invisible|alt|temporal)$", "match_all": true }
        ]
    },
    // wrap in <>
    { "keys": ["<"], "command": "insert_snippet", "args": {"contents": "<${0:$SELECTION}>"}, "context":
        [
            {"key": "selector", "operator": "equal", "operand": "text.tex.latex"},
            { "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
            { "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true }
        ]
    },
    // move over closing >
    { "keys": [">"], "command": "move", "args": {"by": "characters", "forward": true}, "context":
        [   
            {"key": "selector", "operator": "equal", "operand": "text.tex.latex"},
            { "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
            { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
            { "key": "following_text", "operator": "regex_contains", "operand": "^>", "match_all": true }
        ]
    },
    // delete <> pair
    { "keys": ["backspace"], "command": "run_macro_file", "args": {"file": "Packages/Default/Delete Left Right.sublime-macro"}, "context":
        [
            {"key": "selector", "operator": "equal", "operand": "text.tex.latex"},
            { "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
            { "key": "preceding_text", "operator": "regex_contains", "operand": "<$", "match_all": true },
            { "key": "following_text", "operator": "regex_contains", "operand": "^>", "match_all": true }
        ]
    },
    // autopair quotation marks (`')
    { "keys": ["`"], "command": "insert_snippet", "args": {"contents": "`$0'"}, "context":
        [
            { "key": "selector", "operator": "equal", "operand": "text.tex.latex"},
            { "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
            { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true }
        ]
    },
    { "keys": ["`"], "command": "insert_snippet", "args": {"contents": "`${0:$SELECTION}'"}, "context":
        [
            { "key": "selector", "operator": "equal", "operand": "text.tex.latex"},
            { "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
            { "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true }
        ]
    },
    { "keys": ["'"], "command": "move", "args": {"by": "characters", "forward": true}, "context":
        [
            { "key": "selector", "operator": "equal", "operand": "text.tex.latex"},
            { "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
            { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
            { "key": "following_text", "operator": "regex_contains", "operand": "^'", "match_all": true }
        ]
    },

当我在谷歌上搜索此内容时,我没有找到任何相关信息。

相关内容