Search code examples
sublimetext3sublimetext

Sublime text: How to disable automatching 'quotes'


Here's my problem: In common lisp, a 'single quote' is not used for strings and thus doesn't come in pairs with another quote, so sublime text auto-inserting another quote does more harm than good. How do I disable that option just for lisp and just for single quotes?


Solution

  • Just add a keybinding to your keymap (which you can find in preferences, key bindings) and in the user tab paste this:

    {
      "keys": ["'"], "command": "insert", "args": {"characters": "'"},
      "context":
      [
        { "key": "selector", "operator": "equal", "operand": "source.lisp" }
      ]
    },
    

    Let me know if you need anything else! I tested it in sublime text (I use it too)